diff options
author | Shane Caraveo <shane@php.net> | 2003-01-26 01:39:18 +0000 |
---|---|---|
committer | Shane Caraveo <shane@php.net> | 2003-01-26 01:39:18 +0000 |
commit | 82f6cef483d3effcdef42f1602f24d8f3aa329fc (patch) | |
tree | fb7dc52fae6921550f7cd768351bd0557cedd11b /main | |
parent | 436ad07b9806c09893f4583432c996748ac568f4 (diff) | |
download | php-git-82f6cef483d3effcdef42f1602f24d8f3aa329fc.tar.gz |
Fix broken build by adding scandir and alphasort for win32
Diffstat (limited to 'main')
-rw-r--r-- | main/php_ini.c | 6 |
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) |