mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-05 17:27:07 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user