diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2022-05-04 21:50:50 -0700 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2022-05-04 21:50:50 -0700 |
commit | 1b7bb2a4d77342cf7fe341c999fa6405ebbae94c (patch) | |
tree | bcfee50747fc47f88afe9f438c5a53795394f076 /audio/aeolus/files/patch-global.h | |
parent | japanese/font-{mplus-ipa,std}: add NO_ARCH (diff) |
audio/aeolus: New port: Synthesised pipe organ emulator
Diffstat (limited to 'audio/aeolus/files/patch-global.h')
-rw-r--r-- | audio/aeolus/files/patch-global.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/audio/aeolus/files/patch-global.h b/audio/aeolus/files/patch-global.h new file mode 100644 index 000000000000..eaa4e44e0c90 --- /dev/null +++ b/audio/aeolus/files/patch-global.h @@ -0,0 +1,21 @@ +--- global.h.orig 2022-05-05 04:18:20 UTC ++++ global.h +@@ -21,14 +21,14 @@ + #ifndef __GLOBAL_H + #define __GLOBAL_H + +-#include <endian.h> +-#ifdef __BYTE_ORDER +-#if (__BYTE_ORDER == __LITTLE_ENDIAN) ++#include <sys/endian.h> ++#ifdef _BYTE_ORDER ++#if (_BYTE_ORDER == _LITTLE_ENDIAN) + #define WR2(p,v) { (p)[0] = v; (p)[1] = v >> 8; } + #define WR4(p,v) { (p)[0] = v; (p)[1] = v >> 8; (p)[2] = v >> 16; (p)[3] = v >> 24; } + #define RD2(p) ((p)[0] + ((p)[1] << 8)); + #define RD4(p) ((p)[0] + ((p)[1] << 8) + ((p)[2] << 16) + ((p)[3] << 24)); +-#elif (__BYTE_ORDER == __BIG_ENDIAN) ++#elif (_BYTE_ORDER == _BIG_ENDIAN) + #define WR2(p,v) { (p)[1] = v; (p)[0] = v >> 8; } + #define WR4(p,v) { (p)[3] = v; (p)[2] = v >> 8; (p)[1] = v >> 16; (p)[0] = v >> 24; } + #define RD2(p) ((p)[1] + ((p)[0] << 8)); |