summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Lehnardt <jan@php.net>2002-09-26 11:19:26 +0000
committerJan Lehnardt <jan@php.net>2002-09-26 11:19:26 +0000
commit1f227cd2e3470f984be84226def96fd0261ae000 (patch)
treee4d41e3e0da0cb10c46244dbd1ba8ffc8c867498
parent372b1fae0151cf5d05d983b0e83ed1f24cfef61b (diff)
downloadphp-git-1f227cd2e3470f984be84226def96fd0261ae000.tar.gz
- GLOB_NOMATCH and GLOB_NOESCAPE are only defined in win32/glob.h
- fixes build on FreeBSD 4.6
-rw-r--r--ext/standard/dir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/dir.c b/ext/standard/dir.c
index 7f46c48705..ecb0eb81e2 100644
--- a/ext/standard/dir.c
+++ b/ext/standard/dir.c
@@ -133,9 +133,11 @@ PHP_MINIT_FUNCTION(dir)
#ifdef HAVE_GLOB
REGISTER_LONG_CONSTANT("GLOB_MARK", GLOB_MARK, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("GLOB_NOSORT", GLOB_NOSORT, CONST_CS | CONST_PERSISTENT);
+#ifdef PHP_WIN32
REGISTER_LONG_CONSTANT("GLOB_NOMATCH", GLOB_NOMATCH, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("GLOB_NOESCAPE", GLOB_NOESCAPE, CONST_CS | CONST_PERSISTENT);
#endif
+#endif
return SUCCESS;
}