aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/mupen64plus-video-glide64
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-06-24 00:16:19 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-06-24 00:16:19 +0800
commit2b3f166f57ebeb395998889c9bc497f1db36cd46 (patch)
treeec48216d0401d53f3cd793ecfb767eda85c1910c /emulators/mupen64plus-video-glide64
parent8d74566bff39c337b022885decc06c2af9733289 (diff)
downloadfreebsd-ports-gnome-2b3f166f57ebeb395998889c9bc497f1db36cd46.tar.gz
freebsd-ports-gnome-2b3f166f57ebeb395998889c9bc497f1db36cd46.tar.zst
freebsd-ports-gnome-2b3f166f57ebeb395998889c9bc497f1db36cd46.zip
- Fix build
Approved by: portmgr blanket
Diffstat (limited to 'emulators/mupen64plus-video-glide64')
-rw-r--r--emulators/mupen64plus-video-glide64/files/patch-src_Util.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/emulators/mupen64plus-video-glide64/files/patch-src_Util.h b/emulators/mupen64plus-video-glide64/files/patch-src_Util.h
new file mode 100644
index 000000000000..08be86b3433e
--- /dev/null
+++ b/emulators/mupen64plus-video-glide64/files/patch-src_Util.h
@@ -0,0 +1,13 @@
+--- mupen64plus-video-glide64/src/Util.h.orig 2015-06-19 14:41:15 UTC
++++ mupen64plus-video-glide64/src/Util.h
+@@ -93,7 +93,9 @@ void fix_tex_coord (VERTEX **v);
+ lx = lc; \
+ }
+
+-#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
++#if defined(__FreeBSD__)
++ #include <sys/endian.h>
++#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
+ #include <stdlib.h>
+ #define bswap32(x) _byteswap_ulong(x)
+ #else