aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Baribaud <christophe.baribaud@gmail.com>2012-09-20 11:30:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-09-21 09:45:03 +0200
commit9460c5906fab743f9c02dde3678e4e0fe9959b55 (patch)
tree4e8c7e55a76888e65521f48b0e4d32209c5b5777 /src
parent160da5810f7fe72e415fac11de0f923dcb2b9e4c (diff)
downloadlibssh-9460c5906fab743f9c02dde3678e4e0fe9959b55.tar.gz
libssh-9460c5906fab743f9c02dde3678e4e0fe9959b55.tar.xz
libssh-9460c5906fab743f9c02dde3678e4e0fe9959b55.zip
MSVC Windows and winsock2.h
With Microsoft Visual Studio, winsock2.h shall be included before ws2tcpip.h Signed-off-by: Christophe Baribaud <christophe.baribaud@gmail.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/pcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pcap.c b/src/pcap.c
index cc968632..dbaf765b 100644
--- a/src/pcap.c
+++ b/src/pcap.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#ifdef _WIN32
+#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <netinet/in.h>