aboutsummaryrefslogtreecommitdiff
path: root/src/poll.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-09 00:34:36 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-09 00:34:36 +0100
commitd464b57fa539c3d964c486fd2cbd39b4bc48aef4 (patch)
tree6b3961c85d467ba280849c86b39788995dd4d2e9 /src/poll.c
parentc950ed3b4c2c9a84ae9e94ffc81eb815249f81cb (diff)
downloadlibssh-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/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;