summaryrefslogtreecommitdiff
path: root/main/php_ini.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_ini.c')
-rw-r--r--main/php_ini.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/main/php_ini.c b/main/php_ini.c
index ed9ac9cb98..97038fbbcd 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -31,12 +31,10 @@
#include "SAPI.h"
#include "php_main.h"
-#ifdef PHP_WIN32
-#include "readdir.h"
-/* this makes no sence, vc6 errors if this declaration is not here */
-extern int alphasort(const struct dirent **a, const struct dirent **b);
+#if !HAVE_SCANDIR || !HAVE_ALPHASORT
+ #include "php_scandir.h"
#else
-#include "dirent.h"
+ #include <dirent.h>
#endif
#ifndef S_ISREG