diff options
Diffstat (limited to 'audio/kdemultimedia2/files/patch-kmidi_config_h')
-rw-r--r-- | audio/kdemultimedia2/files/patch-kmidi_config_h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/audio/kdemultimedia2/files/patch-kmidi_config_h b/audio/kdemultimedia2/files/patch-kmidi_config_h index 9fe8a83dcde..fc82b4c0d9a 100644 --- a/audio/kdemultimedia2/files/patch-kmidi_config_h +++ b/audio/kdemultimedia2/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) |