commit:     eb59b32637163183ba71a90a1bcf5ce74ff22dc4
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  4 21:17:17 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue Feb  4 21:17:23 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb59b326

games-emulation/zsnes: tweak for gcc-10

Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 games-emulation/zsnes/files/zsnes-1.51-gcc-10.patch | 11 +++++++++++
 games-emulation/zsnes/zsnes-1.51-r7.ebuild          |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/games-emulation/zsnes/files/zsnes-1.51-gcc-10.patch 
b/games-emulation/zsnes/files/zsnes-1.51-gcc-10.patch
new file mode 100644
index 00000000000..71a1392e6a4
--- /dev/null
+++ b/games-emulation/zsnes/files/zsnes-1.51-gcc-10.patch
@@ -0,0 +1,11 @@
+--- a/initc.c
++++ b/initc.c
+@@ -1495,7 +1495,7 @@ Would be nice to trash this section in the future
+ extern unsigned char ENVDisable, cycpb268, cycpb358, cycpbl2, cycpblt2, 
cycpbl;
+ extern unsigned char cycpblt, opexec268, opexec358, opexec268b, opexec358b;
+ extern unsigned char opexec268cph, opexec358cph, opexec268cphb, opexec358cphb;
+-bool HacksDisable;
++extern bool HacksDisable;
+ 
+ void headerhack()
+ {

diff --git a/games-emulation/zsnes/zsnes-1.51-r7.ebuild 
b/games-emulation/zsnes/zsnes-1.51-r7.ebuild
index 6a452751e0e..1d2c43f55fa 100644
--- a/games-emulation/zsnes/zsnes-1.51-r7.ebuild
+++ b/games-emulation/zsnes/zsnes-1.51-r7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -54,6 +54,8 @@ PATCHES=(
 
        "${FILESDIR}"/${P}-cross-compile.patch
        "${FILESDIR}"/${P}-arch.patch
+
+       "${FILESDIR}"/${P}-gcc-10.patch
 )
 
 src_prepare() {

Reply via email to