summaryrefslogtreecommitdiff
path: root/main/streams/glob_wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/streams/glob_wrapper.c')
-rwxr-xr-xmain/streams/glob_wrapper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/streams/glob_wrapper.c b/main/streams/glob_wrapper.c
index 0ff4f50e29..48c4031a33 100755
--- a/main/streams/glob_wrapper.c
+++ b/main/streams/glob_wrapper.c
@@ -29,6 +29,7 @@
# endif
#endif
+#ifdef HAVE_GLOB
#ifndef GLOB_ONLYDIR
#define GLOB_ONLYDIR (1<<30)
#define GLOB_FLAGMASK (~GLOB_ONLYDIR)
@@ -278,6 +279,7 @@ php_stream_wrapper php_glob_stream_wrapper = {
NULL,
0
};
+#endif /* HAVE_GLOB */
/*
* Local variables: