From b8180f4069f9d01bf8fb48c024c181f8b8536ce2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 6 Jul 2010 00:39:34 +0200 Subject: poll: FD_SETSIZE is only for the count value of FD_SET on Windows. --- libssh/poll.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libssh/poll.c') 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); -- cgit