diff options
author | Corey Farrell <git@cfware.com> | 2018-04-18 16:40:56 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2018-04-18 14:50:53 -0600 |
commit | 179ae87cf4d28b4a4c2fb793e007196068ea8abf (patch) | |
tree | 72db82b3106fc355d7361c53bf5a0e518ceb3b68 /res/Makefile | |
parent | af39255052b9a0adfbb06eb2a169aa8ea4f532ee (diff) |
Build System: Add missing ASTMM_LIBC to flex output.
Redirect libc allocation functions to use Asterisk functions for
main/ast_expr2f.c and res/ael/ael_lex.c. This will resolve errors
produced by astmm.h when these files are regenerated, though other
issues still remain.
ASTERISK~27813
Change-Id: I7263e9e4217a17bde4ffaa2087a8f8aeb2a8588c
Diffstat (limited to 'res/Makefile')
-rw-r--r-- | res/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/Makefile b/res/Makefile index ecaa03d3c..ec3417b35 100644 --- a/res/Makefile +++ b/res/Makefile @@ -45,7 +45,8 @@ endif $(ECHO_PREFIX) echo " [FLEX] $< -> $@" $(CMD_PREFIX) (cd ael; $(FLEX) ael.flex) $(CMD_PREFIX) sed 's@#if __STDC_VERSION__ >= 199901L@#if !defined __STDC_VERSION__ || __STDC_VERSION__ >= 199901L@' $@ > $@.fix - $(CMD_PREFIX) echo "#include \"asterisk.h\"" > $@ + $(CMD_PREFIX) echo "#define ASTMM_LIBC ASTMM_REDIRECT" > $@ + $(CMD_PREFIX) echo "#include \"asterisk.h\"" >> $@ $(CMD_PREFIX) echo >> $@ $(CMD_PREFIX) cat $@.fix >> $@ $(CMD_PREFIX) rm $@.fix |