aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-netkit/netkit-rwho/netkit-rwho/0001-Add-missing-include-path-to-I-options.patch
blob: 9899292b07a9c5a600ce27c6b0e1a416ff8d0a8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 55ab6f1389261edff5f4c942bc3b0d8e695856d7 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 30 Aug 2017 18:11:33 -0700
Subject: [PATCH 1/2] Add missing include path to -I options

Fixes errors like
| rwho.c:52:10: fatal error: 'protocols/rwhod.h' file not found
| #include <protocols/rwhod.h>
|          ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 rwho/Makefile  | 1 +
 rwhod/Makefile | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/rwho/Makefile b/rwho/Makefile
index 6f86388..67b28d4 100644
--- a/rwho/Makefile
+++ b/rwho/Makefile
@@ -6,6 +6,7 @@ include ../MRULES
 rwho: rwho.o
 	$(CC) $(LDFLAGS) $^ $(LIBS) -o $@
 
+CFLAGS += -I../include
 rwho.o: ../version.h
 
 install: rwho
diff --git a/rwhod/Makefile b/rwhod/Makefile
index 772b641..9034218 100644
--- a/rwhod/Makefile
+++ b/rwhod/Makefile
@@ -7,6 +7,8 @@ ifneq ($(USE_GLIBC),1)
 CFLAGS += -D_GNU_SOURCE
 endif
 
+CFLAGS += -I../include
+
 OBJS = rwhod.o
 
 rwhod: $(OBJS)
-- 
2.14.1