From 79454a6f6261090ec8954166982a1891c14dc3c6 Mon Sep 17 00:00:00 2001 From: "Asanka C. Herath" Date: Thu, 18 Nov 2010 20:47:36 -0500 Subject: [PATCH] Block conflicting declarations from Bison If YYMALLOC and YYFREE aren't defined, Bison can generate prototypes for them that conflict with the native declarations. --- lib/com_err/parse.y | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/com_err/parse.y b/lib/com_err/parse.y index d64681d90..3472f82e0 100644 --- a/lib/com_err/parse.y +++ b/lib/com_err/parse.y @@ -46,6 +46,9 @@ extern char *yytext; #define alloca(x) malloc(x) #endif +#define YYMALLOC malloc +#define YYFREE free + %} %union {