games-emulation/mupen64plus-core: Fix GCC 10 / -fno-common

Closes: https://bugs.gentoo.org/708054
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2020-02-26 15:33:58 +01:00
parent 454f1f8b22
commit 447ad3ceef
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
--- a/src/device/r4300/idec.h
+++ b/src/device/r4300/idec.h
@@ -82,6 +82,6 @@
#define IDEC_U53(r4300, iw, u53, u5) (void*)(((char*)(r4300)) + idec_u53((iw), (u53), (u5)))
-const char* g_r4300_opcodes[R4300_OPCODES_COUNT];
+extern const char* g_r4300_opcodes[R4300_OPCODES_COUNT];
#endif
--- a/src/main/workqueue.h
+++ b/src/main/workqueue.h
@@ -27,7 +27,6 @@
struct work_struct;
-struct work_struct *work;
typedef void (*work_func_t)(struct work_struct *work);
struct work_struct {
work_func_t func;

View File

@@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
REQUIRED_USE="gles2? ( !osd )"
S=${WORKDIR}/${MY_P}
PATCHES=( "${FILESDIR}"/${PN}-2.5.9-fix-gcc10-fno-common.patch )
src_prepare() {
default