diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/autoconfig.h.in | 12 | ||||
-rw-r--r-- | include/asterisk/compat.h | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in index 336ab8cfe..00adfb200 100644 --- a/include/asterisk/autoconfig.h.in +++ b/include/asterisk/autoconfig.h.in @@ -328,6 +328,18 @@ /* Define to 1 if you have the `glob' function. */ #undef HAVE_GLOB +/* Define if your system has the GLOB_BRACE headers. */ +#undef HAVE_GLOB_BRACE + +/* Define GLOB_BRACE headers version */ +#undef HAVE_GLOB_BRACE_VERSION + +/* Define if your system has the GLOB_NOMAGIC headers. */ +#undef HAVE_GLOB_NOMAGIC + +/* Define GLOB_NOMAGIC headers version */ +#undef HAVE_GLOB_NOMAGIC_VERSION + /* Define if your system has the GMIME libraries. */ #undef HAVE_GMIME diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index d828b5270..6565687e2 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -182,4 +182,15 @@ typedef unsigned int uint; typedef unsigned long long uint64_t; #endif +/* glob compat stuff */ +#if defined(__Darwin__) || defined(__CYGWIN__) +#define GLOB_ABORTED GLOB_ABEND +#endif +#include <glob.h> +#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE) +#define MY_GLOB_FLAGS GLOB_NOCHECK +#else +#define MY_GLOB_FLAGS (GLOB_NOMAGIC | GLOB_BRACE) +#endif + #endif |