summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 6ab56ed81d..17e00ed7cd 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -845,9 +845,9 @@ PHP_FUNCTION(set_socket_blocking)
/* {{{ proto bool socket_set_timeout(int socket descriptor, int seconds, int microseconds)
Set timeout on socket read to seconds + microseonds */
-#if HAVE_SYS_TIME_H
PHP_FUNCTION(socket_set_timeout)
{
+#if HAVE_SYS_TIME_H
zval **socket, **seconds, **microseconds;
int type;
void *what;
@@ -876,8 +876,10 @@ PHP_FUNCTION(socket_set_timeout)
php_sockset_timeout(socketd, &t);
RETURN_TRUE;
-}
+#else
+ PHP_NOT_IN_THIS_BUILD;
#endif /* HAVE_SYS_TIME_H */
+}
/* }}} */