]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on FreeBSD
authorRoy Marples <roy@marples.name>
Thu, 16 May 2013 10:48:03 +0000 (10:48 +0000)
committerRoy Marples <roy@marples.name>
Thu, 16 May 2013 10:48:03 +0000 (10:48 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 4a6a57e274c4f209e53bba55fb4e05eec792cfc7..c026dfdde4ad562071d78872e1a7a5393dc1e465 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
 #  define IN6_IFF_TENTATIVE    IFA_F_TENTATIVE | IFA_F_OPTIMISTIC
 #  define IN6_IFF_DUPLICATED   IFA_F_DADFAILED
 #else
+#ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */
+#  include <net/if.h>
+#  include <net/if_var.h>
+#endif
 #  include <netinet6/in6_var.h>
 #endif