* lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
+2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+
+ * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
+
2007-01-21 Bruno Haible <bruno@clisp.org>
* m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
| POLLWRNORM | POLLWRBAND)))
{
maxfd = pfd[i].fd;
+
+ /* Windows use a linear array of sockets (of size FD_SETSIZE). The
+ descriptor value is not used to address the array. */
+#if defined __CYGWIN__ || (!defined _WIN32 && !defined __WIN32__)
if (maxfd > FD_SETSIZE)
{
errno = EOVERFLOW;
return -1;
}
+#endif
}
}