From 797695c5ccbfb242f763d552921a23ce03b779ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timo=20Ter=C3=A4s?= Date: Fri, 3 Jun 2016 08:39:02 +0300 Subject: [PATCH] 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 --- res/ael/ael.flex | 6 ++++++ res/ael/ael_lex.c | 6 ++++++ 2 files changed, 12 insertions(+) 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" -- 2.47.2