summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2000-12-13 07:52:48 +0000
committerKevin Lo <kevlo@FreeBSD.org>2000-12-13 07:52:48 +0000
commitc42cf6e6d0e5646709c4a1bd4ad7dab4caaaa111 (patch)
treeb276f9ed2336725955102f854bf44c304b451899 /audio
parentUpdate to 5.6.1. (diff)
Fix broken on -current.
Thanks to Donald J . Maddox <dmaddox@sc.rr.com>
Notes
Notes: svn path=/head/; revision=35945
Diffstat (limited to 'audio')
-rw-r--r--audio/kdemultimedia2/files/patch-kmidi_config_h36
-rw-r--r--audio/kdemultimedia3/files/patch-kmidi_config_h36
2 files changed, 72 insertions, 0 deletions
diff --git a/audio/kdemultimedia2/files/patch-kmidi_config_h b/audio/kdemultimedia2/files/patch-kmidi_config_h
new file mode 100644
index 000000000000..9fe8a83dcde3
--- /dev/null
+++ b/audio/kdemultimedia2/files/patch-kmidi_config_h
@@ -0,0 +1,36 @@
+--- kmidi/config.h.orig Wed Dec 13 14:23:33 2000
++++ kmidi/config.h Wed Dec 13 15:17:18 2000
+@@ -329,8 +329,14 @@
+ #define LE_SHORT(x) x
+ #define LE_LONG(x) x
+ #ifdef __FreeBSD__
+-#define BE_SHORT(x) __byte_swap_word(x)
+-#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)
++# else
++# define LE_SHORT(x) __uint8_swap_uint16(x)
++# define LE_LONG(x) __uint8_swap_uint32(x)
++# endif
+ #else
+ #define BE_SHORT(x) XCHG_SHORT(x)
+ #define BE_LONG(x) XCHG_LONG(x)
+@@ -339,8 +345,14 @@
+ #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)
++# include <osreldate.h>
++# if __FreeBSD_version <= 500000
++# define LE_SHORT(x) __byte_swap_word(x)
++# define LE_LONG(x) __byte_swap_long(x)
++# else
++# define LE_SHORT(x) __uint8_swap_uint16(x)
++# define LE_LONG(x) __uint8_swap_uint32(x)
++# endif
+ #else
+ #define LE_SHORT(x) XCHG_SHORT(x)
+ #define LE_LONG(x) XCHG_LONG(x)
diff --git a/audio/kdemultimedia3/files/patch-kmidi_config_h b/audio/kdemultimedia3/files/patch-kmidi_config_h
new file mode 100644
index 000000000000..9fe8a83dcde3
--- /dev/null
+++ b/audio/kdemultimedia3/files/patch-kmidi_config_h
@@ -0,0 +1,36 @@
+--- kmidi/config.h.orig Wed Dec 13 14:23:33 2000
++++ kmidi/config.h Wed Dec 13 15:17:18 2000
+@@ -329,8 +329,14 @@
+ #define LE_SHORT(x) x
+ #define LE_LONG(x) x
+ #ifdef __FreeBSD__
+-#define BE_SHORT(x) __byte_swap_word(x)
+-#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)
++# else
++# define LE_SHORT(x) __uint8_swap_uint16(x)
++# define LE_LONG(x) __uint8_swap_uint32(x)
++# endif
+ #else
+ #define BE_SHORT(x) XCHG_SHORT(x)
+ #define BE_LONG(x) XCHG_LONG(x)
+@@ -339,8 +345,14 @@
+ #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)
++# include <osreldate.h>
++# if __FreeBSD_version <= 500000
++# define LE_SHORT(x) __byte_swap_word(x)
++# define LE_LONG(x) __byte_swap_long(x)
++# else
++# define LE_SHORT(x) __uint8_swap_uint16(x)
++# define LE_LONG(x) __uint8_swap_uint32(x)
++# endif
+ #else
+ #define LE_SHORT(x) XCHG_SHORT(x)
+ #define LE_LONG(x) XCHG_LONG(x)