From: Timo Teräs Date: Fri, 3 Jun 2016 05:39:02 +0000 (+0300) Subject: Make use of GLOB_BRACE and GLOB_NOMAGIC optional X-Git-Tag: 14.0.0-beta1~127^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=797695c5ccbfb242f763d552921a23ce03b779ff;p=thirdparty%2Fasterisk.git Make use of GLOB_BRACE and GLOB_NOMAGIC optional These flags are non-portable GNU extensions. Make their use optional. This fixes complication error on e.g. musl c-library based systems. Change-Id: I0aa06efc62aa8995f091445c8b762a75a91042f3 --- diff --git a/res/ael/ael.flex b/res/ael/ael.flex index b1b2bd76dc..4e87f3a401 100644 --- a/res/ael/ael.flex +++ b/res/ael/ael.flex @@ -80,6 +80,12 @@ ASTERISK_REGISTER_FILE() #if !defined(GLOB_ABORTED) #define GLOB_ABORTED GLOB_ABEND #endif +#if !defined(GLOB_BRACE) +#define GLOB_BRACE 0 +#endif +#if !defined(GLOB_NOMAGIC) +#define GLOB_NOMAGIC 0 +#endif #include "asterisk/logger.h" #include "asterisk/utils.h" diff --git a/res/ael/ael_lex.c b/res/ael/ael_lex.c index a7a20aa60f..9fbd664294 100644 --- a/res/ael/ael_lex.c +++ b/res/ael/ael_lex.c @@ -839,6 +839,12 @@ ASTERISK_REGISTER_FILE() #if !defined(GLOB_ABORTED) #define GLOB_ABORTED GLOB_ABEND #endif +#if !defined(GLOB_BRACE) +#define GLOB_BRACE 0 +#endif +#if !defined(GLOB_NOMAGIC) +#define GLOB_NOMAGIC 0 +#endif #include "asterisk/logger.h" #include "asterisk/utils.h"