From: Jason Greene Date: Wed, 10 Jul 2002 14:59:22 +0000 (+0000) Subject: Fix socket_set_timeout on win32 ( was not being included ) X-Git-Tag: php-4.2.3RC1~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6793119e36b4dfa723ef39169c6fa65e4da5000b;p=php Fix socket_set_timeout on win32 ( was not being included ) --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 40889ae99d..d517d44053 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -626,7 +626,7 @@ function_entry basic_functions[] = { PHP_FALIAS(fopenstream, warn_not_available, NULL) #endif -#if HAVE_SYS_TIME_H +#if HAVE_SYS_TIME_H || defined(PHP_WIN32) PHP_FE(socket_set_timeout, NULL) #else PHP_FALIAS(socket_set_timeout, warn_not_available, NULL) diff --git a/ext/standard/file.c b/ext/standard/file.c index 8bbb87edc5..0a8728c038 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -878,7 +878,7 @@ PHP_FUNCTION(set_socket_blocking) Set timeout on socket read to seconds + microseonds */ PHP_FUNCTION(socket_set_timeout) { -#if HAVE_SYS_TIME_H +#if HAVE_SYS_TIME_H || defined(PHP_WIN32) zval **socket, **seconds, **microseconds; int type; void *what;