aboutsummaryrefslogtreecommitdiff
path: root/audio/sdl_mixer
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-11-20 08:11:46 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-11-20 08:11:46 +0000
commitc288c723525f25e5951676a7a9815595e49d5a01 (patch)
tree59afbab95e72bca3a79578d3e6cafc8e211b7ffe /audio/sdl_mixer
parentf824e3bbfdb661eaf7f32ba83419e53e03ccd49a (diff)
downloadports-c288c723525f25e5951676a7a9815595e49d5a01.tar.gz
ports-c288c723525f25e5951676a7a9815595e49d5a01.zip
Fix breakage due to disappearance of __byte_swap_* on 5-CURRENT.
Submitted by: bento
Notes
Notes: svn path=/head/; revision=35278
Diffstat (limited to 'audio/sdl_mixer')
-rw-r--r--audio/sdl_mixer/files/patch-ac30
1 files changed, 3 insertions, 27 deletions
diff --git a/audio/sdl_mixer/files/patch-ac b/audio/sdl_mixer/files/patch-ac
index 1cece5d00f9c..f4e45d1285e8 100644
--- a/audio/sdl_mixer/files/patch-ac
+++ b/audio/sdl_mixer/files/patch-ac
@@ -1,6 +1,6 @@
---- timidity/config.h.orig Tue Feb 1 23:16:29 2000
-+++ timidity/config.h Mon Apr 24 12:53:43 2000
-@@ -156,6 +156,22 @@
+--- timidity/config.h.orig Mon Jul 3 07:36:37 2000
++++ timidity/config.h Sat Nov 18 18:47:45 2000
+@@ -159,6 +159,22 @@
# endif
#endif /* linux */
@@ -23,27 +23,3 @@
/* Win32 on Intel machines */
#ifdef __WIN32__
# define LITTLE_ENDIAN
-@@ -186,13 +202,23 @@
- #ifdef LITTLE_ENDIAN
- #define LE_SHORT(x) x
- #define LE_LONG(x) x
-+#if defined(__FreeBSD__) && !defined(__alpha__)
-+#define BE_SHORT(x) __byte_swap_word(x)
-+#define BE_LONG(x) __byte_swap_long(x)
-+#else
- #define BE_SHORT(x) XCHG_SHORT(x)
- #define BE_LONG(x) XCHG_LONG(x)
-+#endif
- #else
- #define BE_SHORT(x) x
- #define BE_LONG(x) x
-+#ifdef __FreeBSD__
-+#define LE_SHORT(x) __byte_swap_word(x)
-+#define LE_LONG(x) __byte_swap_long(x)
-+#else
- #define LE_SHORT(x) XCHG_SHORT(x)
- #define LE_LONG(x) XCHG_LONG(x)
-+#endif
- #endif
-
- #define MAX_AMPLIFICATION 800