Skip to content

Commit

Permalink
- MFH: Errr, rule nº 1: be portable :)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 2, 2009
1 parent 11c47b6 commit e812a31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e812a31

Please sign in to comment.