From: Felipe Pena Date: Fri, 2 Jan 2009 21:42:25 +0000 (+0000) Subject: - Errr, rule nº 1: be portable :) X-Git-Tag: php-5.4.0alpha1~191^2~4666 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7debfa24219c63a73beef767655e0c6d65a04cc6;p=php - Errr, rule nº 1: be portable :) --- diff --git a/main/network.c b/main/network.c index 1dc3d281fb..5ce396db10 100644 --- a/main/network.c +++ b/main/network.c @@ -1147,7 +1147,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) {