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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/php_ini.c b/main/php_ini.c
index 0ca2f5841b..ed9ac9cb98 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -31,7 +31,13 @@
#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);
+#else
#include "dirent.h"
+#endif
#ifndef S_ISREG
#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)