From 2b4b615531dd73456bcc71670d8744878a1684bf Mon Sep 17 00:00:00 2001 From: Richard Kettlewell Date: Sun, 19 Jun 2011 17:57:28 +0100 Subject: [PATCH] Work around Bison's crazy redeclaration of malloc/free. Signed-off-by: Richard Kettlewell --- conffile.y | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conffile.y b/conffile.y index 1625122..7837abe 100644 --- a/conffile.y +++ b/conffile.y @@ -8,6 +8,12 @@ #include #include #include +/* Bison stupidly redeclares malloc/free unless they are #defined + * (or a bunch of madder conditions) */ +#ifndef malloc +# define malloc malloc +# define free free +#endif #include "secnet.h" #include "conffile_internal.h" #include "conffile.yy.h" -- 2.30.2