Recent libpcap versions have added inclusion of pcap/socket.h to pcap.h that includes sys/socket.h and other system .h files that lead to conflicts with winsock2.h.
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru --- dlls/wpcap/wpcap.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/wpcap/wpcap.c b/dlls/wpcap/wpcap.c index e7908cd038..f163235138 100644 --- a/dlls/wpcap/wpcap.c +++ b/dlls/wpcap/wpcap.c @@ -24,6 +24,7 @@ #undef SOCKET #undef INVALID_SOCKET
+#define USE_WS_PREFIX #include "winsock2.h" #include "windef.h" #include "winbase.h"