From: Felipe Pena Date: Fri, 2 Jan 2009 21:43:07 +0000 (+0000) Subject: - MFH: Errr, rule nº 1: be portable :) X-Git-Tag: php-5.2.9RC1~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e812a31c9b6f87779451fe448828a8e95b7302a7;p=php - MFH: Errr, rule nº 1: be portable :) --- diff --git a/main/network.c b/main/network.c index 3b3ad92736..36a306b9ca 100644 --- a/main/network.c +++ b/main/network.c @@ -1141,7 +1141,9 @@ PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout) tv.tv_sec = timeout / 1000; tv.tv_usec = (timeout - (tv.tv_sec * 1000)) * 1000; } +#ifndef PHP_WIN32 errno = 0; +#endif n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL); if (n >= 0) {