diff --git a/res/ael/ael.flex b/res/ael/ael.flex
index b1b2bd76dca8ffea3502308badba65143ee3a185..4e87f3a401ea9cca1aae5f614f4d0e308b36b533 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 a7a20aa60f126c99a79057651ac6fff4f87e4fc9..9fbd664294ed35cf7171606413c4131e1dc94b43 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"