s3:mdssvc: fix flex compilation error
commitd106f5eb9718d4f4e6305101709045314fde03a1
authorRalph Boehme <slow@samba.org>
Mon, 27 May 2019 10:27:57 +0000 (27 12:27 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Jun 2019 06:49:35 +0000 (21 06:49 +0000)
tree649ebf1f787b2e69b1e473e47c44a1e05e9c4dc8
parent7c80167e2af0afbf530b39efd677cdbffb32ad54
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".

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13987

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

(cherry picked from commit 9053391f86a529e0a7dbcd23fa3a555d85c2207c)
source3/rpc_server/mdssvc/sparql_lexer.l