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 #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[],