summaryrefslogtreecommitdiff
path: root/main/network.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-02-27 18:06:31 +0000
committerWez Furlong <wez@php.net>2003-02-27 18:06:31 +0000
commit203068d055b3746074c9e7e85650a312d3c8b24d (patch)
tree21c8292cbaca2cbfee9ab3a515c3357aa21ce031 /main/network.c
parentfd61f69077f6156ca71dde60ecfd9ed9765a02db (diff)
downloadphp-git-203068d055b3746074c9e7e85650a312d3c8b24d.tar.gz
Fixup build for win32
Diffstat (limited to 'main/network.c')
-rw-r--r--main/network.c3
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)) {