Skip to content

Commit

Permalink
games-roguelike/angband: tweak for gcc-10, bug #707770
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/707770
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Feb 29, 2020
1 parent f81e1c8 commit 03c9937
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
4 changes: 3 additions & 1 deletion games-roguelike/angband/angband-4.2.0.ebuild
Original file line number Diff line number Diff line change
@@ -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=7
Expand Down Expand Up @@ -48,6 +48,8 @@ RDEPEND="X? (
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=("${FILESDIR}"/${P}-gcc-10.patch)

src_prepare() {
default

Expand Down
22 changes: 22 additions & 0 deletions games-roguelike/angband/files/angband-4.2.0-gcc-10.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
https://bugs.gentoo.org/707770

--- a/src/mon-blows.h
+++ b/src/mon-blows.h
@@ -41,7 +41,7 @@ struct blow_method {
struct blow_method *next;
};

-struct blow_method *blow_methods;
+extern struct blow_method *blow_methods;

/**
* Storage for context information for effect handlers called in
@@ -83,7 +83,7 @@ struct blow_effect {
struct blow_effect *next;
};

-struct blow_effect *blow_effects;
+extern struct blow_effect *blow_effects;

/* Functions */
int blow_index(const char *name);

0 comments on commit 03c9937

Please sign in to comment.