add upstream patch to fix compiling on GCC 10+
This commit is contained in:
parent
0ba848d1d3
commit
0dcd8a7ef1
|
@ -37,7 +37,10 @@ DEPEND="${RDEPEND}"
|
||||||
BDEPEND="dev-python/docutils
|
BDEPEND="dev-python/docutils
|
||||||
virtual/pkgconfig"
|
virtual/pkgconfig"
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${P}-tinfo.patch )
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${P}-tinfo.patch
|
||||||
|
"${FILESDIR}"/${P}-gcc-10.patch
|
||||||
|
)
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
|
@ -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);
|
Loading…
Reference in New Issue