summaryrefslogtreecommitdiff
path: root/user/mednafen/ppc64.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-25 03:46:50 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-03-25 03:47:34 +0000
commit13fa4c900a5d7825c4802b12cecdf6e22e9dfac8 (patch)
treef4bce79bcacf177b7a5f36fdd59d2d0714bf217f /user/mednafen/ppc64.patch
parent1c3faa045f6dd93d8764f6e9482e8bd725fe388b (diff)
downloadpackages-13fa4c900a5d7825c4802b12cecdf6e22e9dfac8.tar.gz
packages-13fa4c900a5d7825c4802b12cecdf6e22e9dfac8.tar.bz2
packages-13fa4c900a5d7825c4802b12cecdf6e22e9dfac8.tar.xz
packages-13fa4c900a5d7825c4802b12cecdf6e22e9dfac8.zip
user/mednafen: bump to 1.22.1, port to PPC64
Diffstat (limited to 'user/mednafen/ppc64.patch')
-rw-r--r--user/mednafen/ppc64.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/mednafen/ppc64.patch b/user/mednafen/ppc64.patch
new file mode 100644
index 000000000..734af47de
--- /dev/null
+++ b/user/mednafen/ppc64.patch
@@ -0,0 +1,13 @@
+musl is always ELFv2, no matter endianness.
+
+--- mednafen/src/snes/src/lib/libco/ppc.c.old 2019-01-28 06:52:37.000000000 +0000
++++ mednafen/src/snes/src/lib/libco/ppc.c 2019-03-25 03:42:05.330000000 +0000
+@@ -40,7 +40,7 @@
+ /* Whether function calls are indirect through a descriptor,
+ or are directly to function */
+ #ifndef LIBCO_PPCDESC
+- #if !_CALL_SYSV && (_CALL_AIX || _CALL_AIXDESC || LIBCO_PPC64)
++ #if !_CALL_SYSV && (_CALL_AIX || _CALL_AIXDESC || (LIBCO_PPC64 && _CALL_ELF == 1))
+ #define LIBCO_PPCDESC 1
+ #endif
+ #endif