]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on FreeBSD
authorRoy Marples <roy@marples.name>
Thu, 5 Jun 2014 14:16:33 +0000 (14:16 +0000)
committerRoy Marples <roy@marples.name>
Thu, 5 Jun 2014 14:16:33 +0000 (14:16 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index cdbfb1f078e8b68c511b9ba102bebf00783f7a5c..5a9e2b1494f91dfc23a6b09ff12f075548379f07 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -38,6 +38,7 @@
 #ifdef __linux__
 #  include <asm/types.h> /* for systems with broken headers */
 #  include <linux/rtnetlink.h>
+#  include <endian.h>
    /* Match Linux defines to BSD */
 #  ifdef IFA_F_OPTIMISTIC
 #    define IN6_IFF_TENTATIVE  (IFA_F_TENTATIVE | IFA_F_OPTIMISTIC)
@@ -51,6 +52,7 @@
 #  endif
 #  define IN6_IFF_DETACHED     0
 #else
+#  include <sys/endian.h>
 #  include <net/if.h>
 #ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */
 #  include <net/if_var.h>