aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-09 00:36:16 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-09 00:36:16 +0100
commit5a8a2a56af6d1b2a5342083ef6130994dd373044 (patch)
tree590e2d9b3a4db33b002b6d30124d994b4c49770d /src
parentd464b57fa539c3d964c486fd2cbd39b4bc48aef4 (diff)
downloadlibssh-5a8a2a56af6d1b2a5342083ef6130994dd373044.tar.gz
libssh-5a8a2a56af6d1b2a5342083ef6130994dd373044.tar.xz
libssh-5a8a2a56af6d1b2a5342083ef6130994dd373044.zip
poll: Use WSAPoll() on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/poll.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/poll.c b/src/poll.c
index 4cea93fe..ab2fcc47 100644
--- a/src/poll.c
+++ b/src/poll.c
@@ -269,8 +269,10 @@ void ssh_poll_init(void) {
}
#endif /* _WIN32 */
- if (wsa_poll != NULL) {
+ if (wsa_poll == NULL) {
ssh_poll_emu = bsd_poll;
+ } else {
+ ssh_poll_emu = win_poll;
}
}