diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-02-09 00:34:36 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-02-09 00:34:36 +0100 |
commit | d464b57fa539c3d964c486fd2cbd39b4bc48aef4 (patch) | |
tree | 6b3961c85d467ba280849c86b39788995dd4d2e9 /src | |
parent | c950ed3b4c2c9a84ae9e94ffc81eb815249f81cb (diff) | |
download | libssh-d464b57fa539c3d964c486fd2cbd39b4bc48aef4.tar.gz libssh-d464b57fa539c3d964c486fd2cbd39b4bc48aef4.tar.xz libssh-d464b57fa539c3d964c486fd2cbd39b4bc48aef4.zip |
Revert "poll: Remove obsolete win_poll functions."
This reverts commit c950ed3b4c2c9a84ae9e94ffc81eb815249f81cb.
Diffstat (limited to 'src')
-rw-r--r-- | src/poll.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |