aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}