add upstream patch to fix compiling on GCC 10+

This commit is contained in:
Brian S. Stephan 2022-01-02 12:07:33 -06:00
parent 0ba848d1d3
commit 0dcd8a7ef1
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
2 changed files with 25 additions and 1 deletions

View File

@ -37,7 +37,10 @@ DEPEND="${RDEPEND}"
BDEPEND="dev-python/docutils
virtual/pkgconfig"
PATCHES=( "${FILESDIR}"/${P}-tinfo.patch )
PATCHES=(
"${FILESDIR}"/${P}-tinfo.patch
"${FILESDIR}"/${P}-gcc-10.patch
)
src_prepare() {
default

View File

@ -0,0 +1,21 @@
diff -urN angband-4.1.3.orig/src/mon-blows.h angband-4.1.3/src/mon-blows.h
--- angband-4.1.3.orig/src/mon-blows.h 2018-07-21 23:49:08.000000000 -0500
+++ angband-4.1.3/src/mon-blows.h 2022-01-02 12:04:52.000000000 -0600
@@ -35,7 +35,7 @@
struct blow_method *next;
};
-struct blow_method *blow_methods;
+extern struct blow_method *blow_methods;
/**
* Storage for context information for effect handlers called in
@@ -76,7 +76,7 @@
struct blow_effect *next;
};
-struct blow_effect *blow_effects;
+extern struct blow_effect *blow_effects;
/* Functions */
int blow_index(const char *name);