From 7d6aa70d6042fbe0372b372aa8624bb64ebf787c Mon Sep 17 00:00:00 2001 From: dinoex Date: Thu, 21 May 2020 06:45:34 +0000 Subject: [PATCH] - fix build with -fno-common --- misc/magicpoint/files/patch-grammar.y | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/magicpoint/files/patch-grammar.y b/misc/magicpoint/files/patch-grammar.y index c306349d4e33..c4947e9944eb 100644 --- a/misc/magicpoint/files/patch-grammar.y +++ b/misc/magicpoint/files/patch-grammar.y @@ -1,6 +1,6 @@ --- grammar.y.orig 2008-01-18 17:43:20 UTC +++ grammar.y -@@ -70,6 +70,8 @@ +@@ -70,10 +70,12 @@ static struct qual qerr = { Q_UNDEF, Q_UNDEF, Q_UNDEF, Q_UNDEF }; #endif @@ -9,3 +9,8 @@ int n_errors = 0; struct ctrl *root; char *yyfilename; +-int yylineno; ++extern int yylineno; + + #ifdef HAVE_STDARG_H + /* GCC complains if we declare this function in traditional style */