]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on NetBSD.
authorRoy Marples <roy@marples.name>
Thu, 14 May 2015 20:18:58 +0000 (20:18 +0000)
committerRoy Marples <roy@marples.name>
Thu, 14 May 2015 20:18:58 +0000 (20:18 +0000)
ipv6.c
ipv6.h

diff --git a/ipv6.c b/ipv6.c
index 1e6778f1df4520355eca06f211aec93e3c44f168..c351ac742c5c45858a929e0aefc2260012db1e15 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
 #include <netinet/in.h>
 #include <netinet/if_ether.h>
 
-#ifndef __linux__
-#  ifndef __QNX__
-#    include <sys/endian.h>
-#  endif
-#  include <net/if.h>
-#  ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */
-#    include <net/if_var.h>
-#  endif
-#  ifndef __sun
-#    include <netinet6/in6_var.h>
-#  endif
-#endif
-
 #include <errno.h>
 #include <ifaddrs.h>
 #include <inttypes.h>
diff --git a/ipv6.h b/ipv6.h
index a2e3042ccd452a5d603663f45406f40248000324..83710c47fbdfc4104d2ea0c2de873740b4a1f311 100644 (file)
--- a/ipv6.h
+++ b/ipv6.h
 #include <sys/uio.h>
 #include <netinet/in.h>
 
+#ifndef __linux__
+#  ifndef __QNX__
+#    include <sys/endian.h>
+#  endif
+#  include <net/if.h>
+#  ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */
+#    include <net/if_var.h>
+#  endif
+#  ifndef __sun
+#    include <netinet6/in6_var.h>
+#  endif
+#endif
+
 #include "config.h"
 #include "dhcpcd.h"