diff options
author | kevlo <kevlo@FreeBSD.org> | 2000-12-13 15:52:48 +0800 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2000-12-13 15:52:48 +0800 |
commit | c43d2e4e49416c10c703b701eb9afe50cc9dcaa8 (patch) | |
tree | 074cff526d8894a733d61fa8fd9b8b81fb6a3508 /multimedia | |
parent | 5ade786b4a8346963f6a1e864404a866a2bda32a (diff) | |
download | freebsd-ports-gnome-c43d2e4e49416c10c703b701eb9afe50cc9dcaa8.tar.gz freebsd-ports-gnome-c43d2e4e49416c10c703b701eb9afe50cc9dcaa8.tar.zst freebsd-ports-gnome-c43d2e4e49416c10c703b701eb9afe50cc9dcaa8.zip |
Fix broken on -current.
Thanks to Donald J . Maddox <dmaddox@sc.rr.com>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/kdemultimedia3/files/patch-kmidi_config_h | 36 | ||||
-rw-r--r-- | multimedia/kdemultimedia4/files/patch-kmidi_config_h | 36 |
2 files changed, 72 insertions, 0 deletions
diff --git a/multimedia/kdemultimedia3/files/patch-kmidi_config_h b/multimedia/kdemultimedia3/files/patch-kmidi_config_h new file mode 100644 index 000000000000..9fe8a83dcde3 --- /dev/null +++ b/multimedia/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) diff --git a/multimedia/kdemultimedia4/files/patch-kmidi_config_h b/multimedia/kdemultimedia4/files/patch-kmidi_config_h new file mode 100644 index 000000000000..9fe8a83dcde3 --- /dev/null +++ b/multimedia/kdemultimedia4/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) |