wpcap: Fix compilation with recent pcap/pcap.h versions.

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>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2019-02-28 20:37:47 +03:00 committed by Alexandre Julliard
parent 554a804742
commit 40c9b46500
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@
#undef SOCKET
#undef INVALID_SOCKET
#define USE_WS_PREFIX
#include "winsock2.h"
#include "windef.h"
#include "winbase.h"