app-office/magicpoint: Fix build with gcc-10

Closes: https://bugs.gentoo.org/746488
Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
Jakov Smolic
2021-02-09 10:59:19 -06:00
committed by Ben Kohler
parent 79ab506b3c
commit fec4effdd2
2 changed files with 13 additions and 1 deletions
@@ -0,0 +1,11 @@
--- a/grammar.y
+++ b/grammar.y
@@ -73,7 +73,7 @@ static struct qual qerr = { Q_UNDEF, Q_UNDEF, Q_UNDEF, Q_UNDEF };
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 */
@@ -60,7 +60,8 @@ src_prepare() {
"${FILESDIR}"/${PN}-1.13a_p20121015-parse-empty.patch \
"${FILESDIR}"/${PN}-1.13a_p20121015-draw-charset.patch \
"${FILESDIR}"/${PN}-1.13a_p20121015-draw-stringtoolong.patch \
"${FILESDIR}"/${PN}-1.13a_p20121015-implicit-declaration.patch
"${FILESDIR}"/${PN}-1.13a_p20121015-implicit-declaration.patch \
"${FILESDIR}"/${PN}-1.13a_p20121015-fno-common.patch
if ! use imlib; then
epatch "${FILESDIR}"/${PN}-1.13a-libpng15.patch