]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on FreeBSD
authorRoy Marples <roy@marples.name>
Mon, 10 Jun 2013 01:43:28 +0000 (01:43 +0000)
committerRoy Marples <roy@marples.name>
Mon, 10 Jun 2013 01:43:28 +0000 (01:43 +0000)
platform-bsd.c

index 39e61c2c77e720105091be7960ebdb6540ef7ab8..e369ef5930d724a84c4e9207041436d4276040fd 100644 (file)
@@ -32,6 +32,9 @@
 #include <sys/utsname.h>
 
 #include <net/if.h>
+#ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */
+#  include <net/if_var.h>
+#endif
 #include <netinet/in.h>
 #include <netinet6/in6_var.h>
 
@@ -39,6 +42,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <syslog.h>
+#include <unistd.h>
 
 #include "dhcpcd.h"
 #include "if-options.h"