summaryrefslogtreecommitdiff
path: root/include/asterisk/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r--include/asterisk/compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index 519c71e68..5be445e26 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -187,10 +187,10 @@ typedef unsigned long long uint64_t;
#define GLOB_ABORTED GLOB_ABEND
#endif
#include <glob.h>
-#ifdef SOLARIS
+#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE)
#define MY_GLOB_FLAGS GLOB_NOCHECK
#else
-#define MY_GLOB_FLAGS (GLOB_NOMAGIC|GLOB_BRACE)
+#define MY_GLOB_FLAGS (GLOB_NOMAGIC | GLOB_BRACE)
#endif
#endif