From bca73b8340358fbf3e8005eb77dc015c7348ff99 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 1 Sep 2010 23:30:14 +0200 Subject: poll: Fixed the Windows build on Vista and newer. --- libssh/poll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libssh') 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 #include -#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[], -- cgit v1.2.3