diff options
Diffstat (limited to 'libssh/poll.c')
-rw-r--r-- | libssh/poll.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh/poll.c b/libssh/poll.c index b4e37cd..34361a9 100644 --- a/libssh/poll.c +++ b/libssh/poll.c @@ -149,10 +149,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); |