Skip to content

Commit

Permalink
- MFH: Windows part
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 3, 2009
1 parent e812a31 commit 38d47b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main/network.c
Expand Up @@ -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);
Expand Down

0 comments on commit 38d47b0

Please sign in to comment.