summaryrefslogtreecommitdiffstats
path: root/libssh/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/poll.c')
-rw-r--r--libssh/poll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh/poll.c b/libssh/poll.c
index 70d42fda..d74216b0 100644
--- a/libssh/poll.c
+++ b/libssh/poll.c
@@ -124,10 +124,12 @@ static int bsd_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) {
if (fds[i].fd == SSH_INVALID_SOCKET) {
continue;
}
+#ifndef _WIN32
if (fds[i].fd >= FD_SETSIZE) {
rc = -1;
break;
}
+#endif
if (fds[i].events & (POLLIN | POLLRDNORM)) {
FD_SET (fds[i].fd, &readfds);