From d464b57fa539c3d964c486fd2cbd39b4bc48aef4 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 9 Feb 2011 00:34:36 +0100 Subject: [PATCH] Revert "poll: Remove obsolete win_poll functions." This reverts commit c950ed3b4c2c9a84ae9e94ffc81eb815249f81cb. --- src/poll.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/poll.c b/src/poll.c index 0f9af140..4cea93fe 100644 --- a/src/poll.c +++ b/src/poll.c @@ -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;