aboutsummaryrefslogtreecommitdiff
path: root/audio/kdemultimedia3
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2000-12-14 01:49:34 +0000
committerKevin Lo <kevlo@FreeBSD.org>2000-12-14 01:49:34 +0000
commitcc5ec17b7db33c9104e353d847053a6f4bce1294 (patch)
treeb3afed70525d6a60c13b6cd898abd7f5ef023ac6 /audio/kdemultimedia3
parent83c4d02d045a855f069abf7392fdda3422801c79 (diff)
downloadports-cc5ec17b7db33c9104e353d847053a6f4bce1294.tar.gz
ports-cc5ec17b7db33c9104e353d847053a6f4bce1294.zip
Notes
Diffstat (limited to 'audio/kdemultimedia3')
-rw-r--r--audio/kdemultimedia3/files/patch-kmidi_config_h8
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/kdemultimedia3/files/patch-kmidi_config_h b/audio/kdemultimedia3/files/patch-kmidi_config_h
index 9fe8a83dcde3..fc82b4c0d9a1 100644
--- a/audio/kdemultimedia3/files/patch-kmidi_config_h
+++ b/audio/kdemultimedia3/files/patch-kmidi_config_h
@@ -8,11 +8,11 @@
-#define BE_LONG(x) __byte_swap_long(x)
+# include <osreldate.h>
+# if __FreeBSD_version <= 500000
-+# define LE_SHORT(x) __byte_swap_word(x)
-+# define LE_LONG(x) __byte_swap_long(x)
++# define BE_SHORT(x) __byte_swap_word(x)
++# define BE_LONG(x) __byte_swap_long(x)
+# else
-+# define LE_SHORT(x) __uint8_swap_uint16(x)
-+# define LE_LONG(x) __uint8_swap_uint32(x)
++# define BE_SHORT(x) __uint8_swap_uint16(x)
++# define BE_LONG(x) __uint8_swap_uint32(x)
+# endif
#else
#define BE_SHORT(x) XCHG_SHORT(x)