]> The Tcpdump Group git mirrors - libpcap/commitdiff
We have to include <net/bpf.h> on Digital UNIX to get various ioctls
authorguy <guy>
Fri, 2 May 2003 08:35:42 +0000 (08:35 +0000)
committerguy <guy>
Fri, 2 May 2003 08:35:42 +0000 (08:35 +0000)
defined.

pcap-pf.c

index 85210d88e9ae7324e70f2316876e93dbe3b3cf02..7728abc86efc8e3cf5f5c206c04df43cabd5acbb 100644 (file)
--- a/pcap-pf.c
+++ b/pcap-pf.c
@@ -24,7 +24,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-pf.c,v 1.72 2003-01-03 08:33:24 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-pf.c,v 1.73 2003-05-02 08:35:42 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -61,6 +61,13 @@ struct rtentry;
 #include <string.h>
 #include <unistd.h>
 
+/*
+ * Make "pcap.h" not include "pcap-bpf.h"; we are going to include the
+ * native OS version, as we need various BPF ioctls from it.
+ */
+#define PCAP_DONT_INCLUDE_PCAP_BPF_H
+#include <net/bpf.h>
+
 #include "pcap-int.h"
 
 #ifdef HAVE_OS_PROTO_H