mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
poll: Fixed the Windows build on Vista and newer.
This commit is contained in:
@@ -87,8 +87,8 @@ static poll_fn ssh_poll_emu;
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
|
|
||||||
#ifndef WSAPOLLFD
|
#if (_WIN32_WINNT < 0x0600)
|
||||||
typedef ssh_pollfd_t WSAPOLLFD;
|
typedef struct ssh_pollfd_struct WSAPOLLFD;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef int (WSAAPI* WSAPoll_FunctionType)(WSAPOLLFD fdarray[],
|
typedef int (WSAAPI* WSAPoll_FunctionType)(WSAPOLLFD fdarray[],
|
||||||
|
|||||||
Reference in New Issue
Block a user