]> granicus.if.org Git - php/commitdiff
- MFH: Windows part
authorFelipe Pena <felipe@php.net>
Sat, 3 Jan 2009 00:06:59 +0000 (00:06 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 3 Jan 2009 00:06:59 +0000 (00:06 +0000)
main/network.c

index 36a306b9ca6203042828888a5c50352b78b04df1..c9dc0466ecffbcbd29081ce2d7f29f7da968a107 100644 (file)
@@ -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);