s3:mdssvc: fix flex compilation error
authorRalph Boehme <slow@samba.org>
Mon, 27 May 2019 10:27:57 +0000 (12:27 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 28 May 2019 11:49:06 +0000 (11:49 +0000)
commit9053391f86a529e0a7dbcd23fa3a555d85c2207c
tree7dbeae358a524f493fb6482c2553c00458f608fd
parentfa2a530cadb2540a8fb677c6b35d5f85fc635921
s3:mdssvc: fix flex compilation error

[4440/4495] Compiling bin/default/source3/rpc_server/mdssvc/sparql_lexer.lex.c
../../source3/rpc_server/mdssvc/sparql_lexer.l:26: error: "yyalloc" redefined [-Werror]
26 | #define yyalloc SMB_MALLOC

Looks like the dirty redefine trick doesn't work anymore with newer flex
versions. According to the flex manual the right thing to do is to provide own
functions for yyalloc and yyrealloc when passing the options "noyyalloc
noyyrealloc".

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue May 28 11:49:06 UTC 2019 on sn-devel-184
source3/rpc_server/mdssvc/sparql_lexer.l