diff options
author | Andreas Schneider <asn@cynapses.org> | 2010-07-06 00:39:34 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cynapses.org> | 2010-07-06 00:40:19 +0200 |
commit | 59a95fc3a773b42c8de003e55c18dcada53c2976 (patch) | |
tree | e92f068dc623c1b56a0f7062e1644830ea090adc | |
parent | c1729c36d91047c61bf7d42361129da4e2f4006a (diff) | |
download | libssh-59a95fc3a773b42c8de003e55c18dcada53c2976.tar.gz libssh-59a95fc3a773b42c8de003e55c18dcada53c2976.tar.xz libssh-59a95fc3a773b42c8de003e55c18dcada53c2976.zip |
poll: FD_SETSIZE is only for the count value of FD_SET on Windows.
-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 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); |