From: Felipe Pena Date: Sat, 3 Jan 2009 00:06:59 +0000 (+0000) Subject: - MFH: Windows part X-Git-Tag: php-5.2.9RC1~166 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38d47b02df7333c32ac5af6735009914807a6aad;p=php - MFH: Windows part --- diff --git a/main/network.c b/main/network.c index 36a306b9ca..c9dc0466ec 100644 --- a/main/network.c +++ b/main/network.c @@ -1141,7 +1141,10 @@ 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 +/* Reseting/initializing */ +#ifdef PHP_WIN32 + WSASetLastError(0); +#else errno = 0; #endif n = select(max_fd + 1, &rset, &wset, &eset, timeout >= 0 ? &tv : NULL);