1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

Revert "poll: Remove obsolete win_poll functions."

This reverts commit c950ed3b4c.
This commit is contained in:
Andreas Schneider
2011-02-09 00:34:36 +01:00
parent c950ed3b4c
commit d464b57fa5

View File

@@ -117,6 +117,14 @@ typedef int (WSAAPI* WSAPoll_FunctionType)(WSAPOLLFD fdarray[],
static WSAPoll_FunctionType wsa_poll;
int win_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) {
if (wsa_poll) {
return (wsa_poll)((WSAPOLLFD *) fds, nfds, timeout);
}
return SOCKET_ERROR;
}
#define WS2_LIBRARY "ws2_32.dll"
static HINSTANCE hlib;