diff --git a/configure.ac b/configure.ac index b1ff51bcc2d1..0356298ebd98 100644 --- a/configure.ac +++ b/configure.ac @@ -559,6 +559,7 @@ AC_CHECK_FUNCS(m4_normalize([ funopen gai_strerror getcwd + getdtablesize getgrnam_r gethostname getloadavg diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index cca9445801f0..4f66ac892b78 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -346,7 +346,7 @@ static php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const c return NULL; } -#ifdef HAVE_UNISTD_H +#ifdef HAVE_GETDTABLESIZE dtablesize = getdtablesize(); #else dtablesize = INT_MAX;