]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap.c
Fix another Windows build issue.
[libpcap] / pcap.c
diff --git a/pcap.c b/pcap.c
index 01869797d9566bc835f410b7b02d356d1aeec437..31cd8f8fa7f911a1d220b7abdb94100cd05f0291 100644 (file)
--- a/pcap.c
+++ b/pcap.c
 
 #include <pcap-types.h>
 #ifdef _WIN32
+/*
+ * Make sure Packet32.h doesn't define BPF structures that we've
+ * probably already defined as a result of including <pcap/pcap.h>.
+ */
+#define BPF_MAJOR_VERSION
 #include <Packet32.h>  /* for PacketGetVersion() */
 #else
 #include <sys/param.h>