netdev-bsd: Include net/bpf.h.
authorDan McGregor <dan.mcgregor@usask.ca>
Tue, 19 May 2015 19:24:26 +0000 (12:24 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 21 May 2015 01:45:33 +0000 (18:45 -0700)
The documentation says it is required to use bpf ioctls on both
NetBSD and FreeBSD. It causes a compile time failure on FreeBSD 10.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-bsd.c

index b377baf..99ab40f 100644 (file)
@@ -26,6 +26,7 @@
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 #include <sys/sockio.h>
+#include <net/bpf.h>
 #include <ifaddrs.h>
 #include <pcap/pcap.h>
 #include <net/if.h>