summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2003-02-28 07:52:23 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2003-02-28 07:52:23 +0000
commit80d267e271c2f851b5fe74eaa218c34894677f84 (patch)
tree766d28d99a919c7e75dd725b7e526b6cb11e5f20
parent535a73a71e0541d9461c93a2ed550f4314047269 (diff)
downloadphp-git-80d267e271c2f851b5fe74eaa218c34894677f84.tar.gz
make sure that GNU extensions exist for fnmatch()
-rw-r--r--ext/standard/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index acb63554b6..18058279a4 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -107,6 +107,8 @@ php_file_globals file_globals;
#endif
#ifdef HAVE_FNMATCH
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
#include <fnmatch.h>
#endif