summaryrefslogtreecommitdiffstats
path: root/main/dhcpcd/fix-includes.patch
blob: 555778b6a7e10e63a11f90eb5b8febb97f208dc3 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
diff --git a/dhcp6.c b/dhcp6.c
index 9c1fbec..5a8b94a 100644
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -31,10 +31,6 @@
 #include <sys/utsname.h>
 
 #include <netinet/in.h>
-#ifdef __linux__
-#  define _LINUX_IN6_H
-#  include <linux/ipv6.h>
-#endif
 
 #include <ctype.h>
 #include <errno.h>
diff --git a/dhcpcd.c b/dhcpcd.c
index 64758e5..652313e 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -48,6 +48,7 @@ const char dhcpcd_copyright[] = "Copyright (c) 2006-2014 Roy Marples";
 #include <syslog.h>
 #include <unistd.h>
 #include <time.h>
+#include <fcntl.h>
 
 #include "config.h"
 #include "arp.h"
diff --git a/ipv6.h b/ipv6.h
index 4a89d85..a04fa5a 100644
--- a/ipv6.h
+++ b/ipv6.h
@@ -33,11 +33,6 @@
 
 #include <netinet/in.h>
 
-#ifdef __linux__
-#  define _LINUX_IN6_H
-#  include <linux/ipv6.h>
-#endif
-
 #include "dhcpcd.h"
 
 #define ALLROUTERS "ff02::2"
diff --git a/ipv6nd.c b/ipv6nd.c
index a755fe8..b747fbd 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -33,11 +33,6 @@
 #include <netinet/ip6.h>
 #include <netinet/icmp6.h>
 
-#ifdef __linux__
-#  define _LINUX_IN6_H
-#  include <linux/ipv6.h>
-#endif
-
 #include <errno.h>
 #include <fcntl.h>
 #include <stddef.h>