From: foobar Date: Mon, 8 Sep 2003 13:15:44 +0000 (+0000) Subject: MFH: Fix for bug #25295 X-Git-Tag: php-4.3.4RC1~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40bc8342106dabe1b1fe355b6b324dfa7914473b;p=php MFH: Fix for bug #25295 --- diff --git a/configure.in b/configure.in index ef501a3e5d..5aca18911b 100644 --- a/configure.in +++ b/configure.in @@ -317,16 +317,12 @@ dnl ------------------------------------------------------------------------- dnl Checks for header files. AC_HEADER_STDC +AC_HEADER_DIRENT -dnl In QNX opendir resides in libc but dirent.h is still required -if test "`uname -s 2>/dev/null`" != "QNX"; then - AC_HEADER_DIRENT -else - AC_CHECK_HEADERS(dirent.h) -fi PHP_MISSING_FCLOSE_DECL dnl QNX requires unix.h to allow functions in libunix to work properly AC_CHECK_HEADERS([ \ +dirent.h \ ApplicationServices/ApplicationServices.h \ sys/param.h \ sys/types.h \ diff --git a/main/php_scandir.h b/main/php_scandir.h index 961188e7ad..416e3d88cf 100644 --- a/main/php_scandir.h +++ b/main/php_scandir.h @@ -24,6 +24,10 @@ #include +#ifdef HAVE_SYS_DIR_H +#include +#endif + #ifdef PHP_WIN32 #include "config.w32.h" #include "win32/readdir.h"