summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emulators/libretro-mupen64plus/distinfo3
-rw-r--r--emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h15
2 files changed, 17 insertions, 1 deletions
diff --git a/emulators/libretro-mupen64plus/distinfo b/emulators/libretro-mupen64plus/distinfo
index da1567b79e9..1f7c03028c3 100644
--- a/emulators/libretro-mupen64plus/distinfo
+++ b/emulators/libretro-mupen64plus/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2015/02/04 23:02:12 jmcneill Exp $
+$NetBSD: distinfo,v 1.2 2015/02/05 17:42:06 wiz Exp $
SHA1 (mupen64plus-libretro-20150204.zip) = 85599e878094348163d68fdd704c5bc7edf78e44
RMD160 (mupen64plus-libretro-20150204.zip) = 6c08b86834a8f6d548c85eaa34ca38e779b6a0d2
Size (mupen64plus-libretro-20150204.zip) = 3286777 bytes
+SHA1 (patch-glide2gl_src_Glide64_Util.h) = d3bceef0ba895af8309bfe9435d701d76ca31a27
diff --git a/emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h b/emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h
new file mode 100644
index 00000000000..00266e3c1dc
--- /dev/null
+++ b/emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-glide2gl_src_Glide64_Util.h,v 1.1 2015/02/05 17:42:06 wiz Exp $
+
+bswap32 is defined in the included headers on NetBSD.
+
+--- glide2gl/src/Glide64/Util.h.orig 2015-02-04 18:18:28.000000000 +0000
++++ glide2gl/src/Glide64/Util.h
+@@ -56,7 +56,7 @@ float ScaleZ(float z);
+ #if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
+ #include <stdlib.h>
+ #define bswap32(x) _byteswap_ulong(x)
+-#else
++#elif !defined(__NetBSD__)
+ static inline uint32_t bswap32(uint32_t val)
+ {
+ return (((val & 0xff000000) >> 24) |