aboutsummaryrefslogtreecommitdiff
path: root/src/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/poll.c')
-rw-r--r--src/poll.c8
1 files changed, 8 insertions, 0 deletions
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;