]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Make CAN_ADD_LLADDR work on BSD.
authorRoy Marples <roy@marples.name>
Sat, 12 Sep 2015 20:37:01 +0000 (20:37 +0000)
committerRoy Marples <roy@marples.name>
Sat, 12 Sep 2015 20:37:01 +0000 (20:37 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 5b63cdf551c14fe3b69e0948155460e405a283d5..b7d245fde80765f5edbd348f6ad5e743527b60e2 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
 #include <netinet/in.h>
 #include <netinet/if_ether.h>
 
+#ifdef BSD
+/* Purely for the ND6_IFF_AUTO_LINKLOCAL #define which is solely used
+ * to generate the our CAN_ADD_LLADDR #define. */
+#include <netinet6/in6_var.h>
+#include <netinet6/nd6.h>
+#endif
+
 #include <errno.h>
 #include <ifaddrs.h>
 #include <inttypes.h>