summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-04-29 07:53:39 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-04-29 07:53:39 +0000
commitc5de2a91494adcd7e0690fa53714b94af5660b00 (patch)
treee970658f9c44341386d88024718c997e1d748c43 /audio
parentThis patch is not needed because of rev 1.65 of the port's makefile. (diff)
use __bswap{16,32} instead of __uint8_swap_uint{16,32} (because the
functions no longer exist), this is probably wrong, it should be using htons or equivelant, but i'd like to have this unbroken for now on recent 5.x systems.
Notes
Notes: svn path=/head/; revision=58296
Diffstat (limited to 'audio')
-rw-r--r--audio/kdemultimedia3/files/patch-kmidi-config.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/kdemultimedia3/files/patch-kmidi-config.h b/audio/kdemultimedia3/files/patch-kmidi-config.h
new file mode 100644
index 000000000000..43afe77fd9ea
--- /dev/null
+++ b/audio/kdemultimedia3/files/patch-kmidi-config.h
@@ -0,0 +1,13 @@
+--- ./kmidi/config.h.old Sun Apr 28 23:33:03 2002
++++ ./kmidi/config.h Sun Apr 28 23:33:55 2002
+@@ -264,8 +264,8 @@
+ #define XCHG_SHORT(x) __byte_swap_word(x)
+ #define XCHG_LONG(x) __byte_swap_long(x)
+ #else
+- #define XCHG_SHORT(x) __uint8_swap_uint16(x)
+- #define XCHG_LONG(x) __uint8_swap_uint32(x)
++ #define XCHG_SHORT(x) __bswap16(x)
++ #define XCHG_LONG(x) __bswap32(x)
+ #endif
+ #else
+ #define XCHG_SHORT(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))