changeset 2525:a92e532248c1 draft

Fix compile on FreeBSD
author Roy Marples <roy@marples.name>
date Thu, 05 Jun 2014 14:16:33 +0000
parents fef6e4d6dad7
children c516b8ae5715
files ipv6.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ipv6.c	Thu Jun 05 13:56:16 2014 +0000
+++ b/ipv6.c	Thu Jun 05 14:16:33 2014 +0000
@@ -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>