diff options
author | Wez Furlong <wez@php.net> | 2003-02-27 18:06:31 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-02-27 18:06:31 +0000 |
commit | 203068d055b3746074c9e7e85650a312d3c8b24d (patch) | |
tree | 21c8292cbaca2cbfee9ab3a515c3357aa21ce031 /main/network.c | |
parent | fd61f69077f6156ca71dde60ecfd9ed9765a02db (diff) | |
download | php-git-203068d055b3746074c9e7e85650a312d3c8b24d.tar.gz |
Fixup build for win32
Diffstat (limited to 'main/network.c')
-rw-r--r-- | main/network.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/network.c b/main/network.c index 905af64813..1f9cdc30d5 100644 --- a/main/network.c +++ b/main/network.c @@ -93,6 +93,7 @@ int inet_aton(const char *, struct in_addr *); #include "ext/standard/file.h" #ifdef PHP_WIN32 +# include "win32/time.h" # define SOCK_ERR INVALID_SOCKET # define SOCK_CONN_ERR SOCKET_ERROR # define PHP_TIMEOUT_ERROR_VALUE WSAETIMEDOUT @@ -336,7 +337,7 @@ PHPAPI int php_network_connect_socket(int sockfd, wset = rset; if ((n = select(sockfd + 1, &rset, &wset, &eset, timeout)) == 0) { - error = ETIMEDOUT; + error = PHP_TIMEOUT_ERROR_VALUE; } if(FD_ISSET(sockfd, &rset) || FD_ISSET(sockfd, &wset)) { |