summaryrefslogtreecommitdiffstats
path: root/libssh/connect.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-05-12 20:52:02 +0200
committerAndreas Schneider <mail@cynapses.org>2010-05-12 21:01:18 +0200
commitb1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28 (patch)
treefae172f72f0daabadc6d0f32429f1884756c5ffa /libssh/connect.c
parent56c867edfaa0640b443fba60697f06e603cbbbe5 (diff)
downloadlibssh-b1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28.tar.gz
libssh-b1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28.tar.xz
libssh-b1b42aeb9c2e16dbb990e26e96c7e1c4a277dd28.zip
win: Added missing includes with newer MSCV.
Diffstat (limited to 'libssh/connect.c')
-rw-r--r--libssh/connect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libssh/connect.c b/libssh/connect.c
index daf26cef..98038f0f 100644
--- a/libssh/connect.c
+++ b/libssh/connect.c
@@ -45,6 +45,11 @@
#define NTDDI_VERSION 0x05010000 /* NTDDI_WINXP */
#endif
+#if _MSC_VER >= 1400
+#include <io.h>
+#undef close
+#define close _close
+#endif /* _MSC_VER */
#include <winsock2.h>
#include <ws2tcpip.h>