wpcap: Fix build with newer pcap versions

André Hentschel nerv at dawncrow.de
Fri Jul 21 08:16:51 CDT 2017


Signed-off-by: André Hentschel <nerv at dawncrow.de>
---

fixes https://bugs.winehq.org/show_bug.cgi?id=43403

 dlls/wpcap/wpcap.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c
index b770067..fe46903 100644
--- a/dlls/wpcap/wpcap.c
+++ b/dlls/wpcap/wpcap.c
@@ -19,6 +19,11 @@
  */
 
 #include <pcap/pcap.h>
+
+/* pcap.h might define those: */
+#undef SOCKET
+#undef INVALID_SOCKET
+
 #include "winsock2.h"
 #include "windef.h"
 #include "winbase.h"
-- 
2.7.4




More information about the wine-patches mailing list