summaryrefslogtreecommitdiff
path: root/main/network.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-01-02 21:42:52 +0000
committerFelipe Pena <felipe@php.net>2009-01-02 21:42:52 +0000
commit5b2bb471f76fd2f0a5c1f80e1c9c394a0e3b15e2 (patch)
tree6007b17c4e7a9fbf7fd25b11e99d90f383406d44 /main/network.c
parent9c2043d41abef371a2198f796f29a080d649babb (diff)
downloadphp-git-5b2bb471f76fd2f0a5c1f80e1c9c394a0e3b15e2.tar.gz
- MFH: Errr, rule nº 1: be portable :)
Diffstat (limited to 'main/network.c')
-rw-r--r--main/network.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/network.c b/main/network.c
index 613c070c28..7a066392d8 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) {