aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-09-01 23:30:14 +0200
committerAndreas Schneider <asn@cynapses.org>2010-09-01 23:31:06 +0200
commit3d66164545bfb37a04f29a6221494322abf879a3 (patch)
treefe6b3ec22c76c13f5e44708a6adcac8399c4036b
parentc087e8704d3259b809043bc198d1c90f333a2548 (diff)
downloadlibssh-3d66164545bfb37a04f29a6221494322abf879a3.tar.gz
libssh-3d66164545bfb37a04f29a6221494322abf879a3.tar.xz
libssh-3d66164545bfb37a04f29a6221494322abf879a3.zip
poll: Fixed the Windows build on Vista and newer.
-rw-r--r--libssh/poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/poll.c b/libssh/poll.c
index 537eb955..d4734f3e 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -87,8 +87,8 @@ static poll_fn ssh_poll_emu;
#include <windows.h>
#include <winsock2.h>
-#ifndef WSAPOLLFD
-typedef ssh_pollfd_t WSAPOLLFD;
+#if (_WIN32_WINNT < 0x0600)
+typedef struct ssh_pollfd_struct WSAPOLLFD;
#endif
typedef int (WSAAPI* WSAPoll_FunctionType)(WSAPOLLFD fdarray[],