aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mednafen/ppc64.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mednafen/ppc64.patch')
-rw-r--r--testing/mednafen/ppc64.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/mednafen/ppc64.patch b/testing/mednafen/ppc64.patch
new file mode 100644
index 00000000000..1097c2ae16f
--- /dev/null
+++ b/testing/mednafen/ppc64.patch
@@ -0,0 +1,17 @@
+Taken from Adélie Linux (https://code.foxkit.us/adelie/packages/blob/master/user/mednafen/ppc64.patch)
+===
+
+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
+