aboutsummaryrefslogtreecommitdiff
path: root/audio/kdemultimedia3/files
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2002-05-22 16:28:43 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2002-05-22 16:28:43 +0000
commitbbc55d00b8e3ac47feff1306b3bd4d48e6a8f8cf (patch)
treeaf3f9bff88329b97d17684a791e034ac1a67de33 /audio/kdemultimedia3/files
parent391a77aac85924201b628008808ce9ef08d947b9 (diff)
downloadports-bbc55d00b8e3ac47feff1306b3bd4d48e6a8f8cf.tar.gz
ports-bbc55d00b8e3ac47feff1306b3bd4d48e6a8f8cf.zip
Notes
Diffstat (limited to 'audio/kdemultimedia3/files')
-rw-r--r--audio/kdemultimedia3/files/patch-kmidi-config.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/audio/kdemultimedia3/files/patch-kmidi-config.h b/audio/kdemultimedia3/files/patch-kmidi-config.h
index 43afe77fd9ea..48e97bf33acb 100644
--- a/audio/kdemultimedia3/files/patch-kmidi-config.h
+++ b/audio/kdemultimedia3/files/patch-kmidi-config.h
@@ -1,8 +1,16 @@
---- ./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 @@
+--- kmidi/config.h.orig Sun Oct 21 20:07:36 2001
++++ kmidi/config.h Wed May 22 10:37:04 2002
+@@ -261,11 +261,16 @@
+ /* And a better idea would be to attempt the various asm
+ optimizations ourselves IMO, but hey, this is free */
+ #if __FreeBSD_version <= 500000
++#if defined (__i386__)
#define XCHG_SHORT(x) __byte_swap_word(x)
#define XCHG_LONG(x) __byte_swap_long(x)
++#else
++ #define XCHG_SHORT(x) htons(x)
++ #define XCHG_LONG(x) htonl(x)
++#endif
#else
- #define XCHG_SHORT(x) __uint8_swap_uint16(x)
- #define XCHG_LONG(x) __uint8_swap_uint32(x)