aboutsummaryrefslogtreecommitdiff
path: root/libssh
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:24 +0200
commitbca73b8340358fbf3e8005eb77dc015c7348ff99 (patch)
tree6a81596999dfe092e720a571931fb0c041f1b879 /libssh
parente67d834156a381fe7ef7933d135130083b86d1e3 (diff)
downloadlibssh-bca73b8340358fbf3e8005eb77dc015c7348ff99.tar.gz
libssh-bca73b8340358fbf3e8005eb77dc015c7348ff99.tar.xz
libssh-bca73b8340358fbf3e8005eb77dc015c7348ff99.zip
poll: Fixed the Windows build on Vista and newer.
Diffstat (limited to 'libssh')
-rw-r--r--libssh/poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/poll.c b/libssh/poll.c
index d03c0c8..7942ea0 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -108,8 +108,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[],