]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix another Windows build issue.
authorGuy Harris <[email protected]>
Thu, 7 Sep 2017 03:24:45 +0000 (20:24 -0700)
committerGuy Harris <[email protected]>
Thu, 7 Sep 2017 03:24:45 +0000 (20:24 -0700)
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>