--- a/libpcap_stuff.c
+++ b/libpcap_stuff.c
@@ -16,7 +16,7 @@
 #include <string.h>
 #include <stdlib.h>
 #include <sys/ioctl.h>
-#include <net/bpf.h>
+#include <pcap-bpf.h>
 #include <pcap.h>
 
 #include "globals.h"
--- a/script.c
+++ b/script.c
@@ -23,7 +23,7 @@
 #include <sched.h>
 
 #include <sys/ioctl.h>
-#include <net/bpf.h>
+#include <pcap-bpf.h>
 #include <pcap.h>
 
 #include "release.h"
