We don't need it on Linux and, in fact, it doesn't work on Linux, as
Linux doesn't define "struct bpf_program", libpcap does.
#endif
#if defined(USE_BPF)
+
#include <sys/ioctl.h>
#include <net/bpf.h>
-#elif defined(USE_SOCKET_FILTERS)
-#include <sys/socket.h>
-#include <linux/types.h>
-#include <linux/filter.h>
-#endif
/*
* Make "pcap.h" not include "pcap/bpf.h"; we are going to include the
*/
#define PCAP_DONT_INCLUDE_PCAP_BPF_H
+#elif defined(USE_SOCKET_FILTERS)
+
+#include <sys/socket.h>
+#include <linux/types.h>
+#include <linux/filter.h>
+
+#endif
+
#include <pcap.h>
#ifndef HAVE___ATTRIBUTE__
#define __attribute__(x)