Mercurial > hg > octave-lyh > gnulib-hg
changeset 7921:3456eea85728
2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
* lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
author | Paolo Bonzini <bonzini@gnu.org> |
---|---|
date | Mon, 22 Jan 2007 09:33:16 +0000 |
parents | 53d558c7086d |
children | 91052ba3359d |
files | ChangeLog lib/poll.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +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.
--- a/lib/poll.c +++ b/lib/poll.c @@ -125,11 +125,16 @@ | 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 } }