diff options
author | gallatin <gallatin@FreeBSD.org> | 2002-05-23 00:28:43 +0800 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 2002-05-23 00:28:43 +0800 |
commit | e6a855054c1b498a0ef5718703c8a28dc0adb884 (patch) | |
tree | d4e1e5d2703c40acdeed91f8c6c5cef68583b81a /audio | |
parent | 60bc072ea1c54fe8385c1a87825833014688d74a (diff) | |
download | freebsd-ports-graphics-e6a855054c1b498a0ef5718703c8a28dc0adb884.tar.gz freebsd-ports-graphics-e6a855054c1b498a0ef5718703c8a28dc0adb884.tar.zst freebsd-ports-graphics-e6a855054c1b498a0ef5718703c8a28dc0adb884.zip |
Fix this so it works on FreeBSD/alpha 4.x:
The existing patch does different things for 5.x so as to use the
standard __bswapSIZE(x) inline for 5.x. and adds i386 centric code
for FreeBSD 4.x. This change to the patch modifies the 4.x code
so as to just call htonX(x) on alpha where __byte_swap_X don't exist.
Approved by: will
Diffstat (limited to 'audio')
-rw-r--r-- | audio/kdemultimedia3/files/patch-kmidi-config.h | 14 |
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 43afe77fd9e..48e97bf33ac 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) |