diff options
| author | Felipe Pena <felipe@php.net> | 2009-01-02 21:42:52 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2009-01-02 21:42:52 +0000 |
| commit | 5b2bb471f76fd2f0a5c1f80e1c9c394a0e3b15e2 (patch) | |
| tree | 6007b17c4e7a9fbf7fd25b11e99d90f383406d44 /main/network.c | |
| parent | 9c2043d41abef371a2198f796f29a080d649babb (diff) | |
| download | php-git-5b2bb471f76fd2f0a5c1f80e1c9c394a0e3b15e2.tar.gz | |
- MFH: Errr, rule nº 1: be portable :)
Diffstat (limited to 'main/network.c')
| -rw-r--r-- | main/network.c | 2 |
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) { |
