From 40bc8342106dabe1b1fe355b6b324dfa7914473b Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 8 Sep 2003 13:15:44 +0000 Subject: [PATCH] MFH: Fix for bug #25295 --- configure.in | 8 ++------ main/php_scandir.h | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) 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" -- 2.40.0