aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2002-04-04 19:49:12 +0800
committerwill <will@FreeBSD.org>2002-04-04 19:49:12 +0800
commit61d0558435d639802649747238c2e75ef1889034 (patch)
treeaa5882157b678633e010a8009f6348fabb277aa8 /audio
parent4656e46966a70966122423d068634d60cfc76130 (diff)
downloadfreebsd-ports-gnome-61d0558435d639802649747238c2e75ef1889034.tar.gz
freebsd-ports-gnome-61d0558435d639802649747238c2e75ef1889034.tar.zst
freebsd-ports-gnome-61d0558435d639802649747238c2e75ef1889034.zip
Add a patch to fix build on -current. Untested by me. Should work, though.
PR: 36639 Submitted by: SASAKI Katuhiro <sahiro@crest.ocn.ne.jp>
Diffstat (limited to 'audio')
-rw-r--r--audio/kdemultimedia2/files/patch-kmidi::config.h19
-rw-r--r--audio/kdemultimedia3/files/patch-kmidi::config.h19
2 files changed, 38 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..c0b516c77c21
--- /dev/null
+++ b/audio/kdemultimedia2/files/patch-kmidi::config.h
@@ -0,0 +1,19 @@
+Apply a patch next. But this is not good solution, I think. I
+--- kmidi/config.h.orig Thu Jun 7 03:55:40 2001
++++ kmidi/config.h Mon Apr 1 20:53:28 2002
+@@ -263,9 +263,12 @@
+ #if __FreeBSD_version <= 500000
+ #define XCHG_SHORT(x) __byte_swap_word(x)
+ #define XCHG_LONG(x) __byte_swap_long(x)
+- #else
++ #elif __FreeBSD_version <= 500031
+ #define XCHG_SHORT(x) __uint8_swap_uint16(x)
+ #define XCHG_LONG(x) __uint8_swap_uint32(x)
++ #else
++ #define XCHG_SHORT(x) __bswap16(x)
++ #define XCHG_LONG(x) __bswap32(x)
+ #endif
+ #else
+ #define XCHG_SHORT(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
+
+
diff --git a/audio/kdemultimedia3/files/patch-kmidi::config.h b/audio/kdemultimedia3/files/patch-kmidi::config.h
new file mode 100644
index 000000000000..c0b516c77c21
--- /dev/null
+++ b/audio/kdemultimedia3/files/patch-kmidi::config.h
@@ -0,0 +1,19 @@
+Apply a patch next. But this is not good solution, I think. I
+--- kmidi/config.h.orig Thu Jun 7 03:55:40 2001
++++ kmidi/config.h Mon Apr 1 20:53:28 2002
+@@ -263,9 +263,12 @@
+ #if __FreeBSD_version <= 500000
+ #define XCHG_SHORT(x) __byte_swap_word(x)
+ #define XCHG_LONG(x) __byte_swap_long(x)
+- #else
++ #elif __FreeBSD_version <= 500031
+ #define XCHG_SHORT(x) __uint8_swap_uint16(x)
+ #define XCHG_LONG(x) __uint8_swap_uint32(x)
++ #else
++ #define XCHG_SHORT(x) __bswap16(x)
++ #define XCHG_LONG(x) __bswap32(x)
+ #endif
+ #else
+ #define XCHG_SHORT(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
+
+