From 5a8a2a56af6d1b2a5342083ef6130994dd373044 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 9 Feb 2011 00:36:16 +0100 Subject: poll: Use WSAPoll() on Windows. --- src/poll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; } } -- cgit v1.2.3