From 5b2bb471f76fd2f0a5c1f80e1c9c394a0e3b15e2 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 2 Jan 2009 21:42:52 +0000 Subject: [PATCH] =?utf8?q?-=20MFH:=20Errr,=20rule=20n=C3=82=C2=BA=201:=20b?= =?utf8?q?e=20portable=20:)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- main/network.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.50.1