]> granicus.if.org Git - php/commitdiff
- MFH: Errr, rule nº 1: be portable :)
authorFelipe Pena <felipe@php.net>
Fri, 2 Jan 2009 21:43:07 +0000 (21:43 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 2 Jan 2009 21:43:07 +0000 (21:43 +0000)
main/network.c

index 3b3ad92736f0fafa500c1675f09849c75a203b1f..36a306b9ca6203042828888a5c50352b78b04df1 100644 (file)
@@ -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) {