git: f4e709b14073 - main - audio/alacenc: fix build on POWER / RISC-V
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Sep 2022 20:08:00 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=f4e709b14073b3b2f05a9b4ec3a024ff3a206874 commit f4e709b14073b3b2f05a9b4ec3a024ff3a206874 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-09-22 18:18:47 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-09-22 20:07:47 +0000 audio/alacenc: fix build on POWER / RISC-V --- audio/alacenc/files/patch-vendor_alac_codec_EndianPortable.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/audio/alacenc/files/patch-vendor_alac_codec_EndianPortable.c b/audio/alacenc/files/patch-vendor_alac_codec_EndianPortable.c new file mode 100644 index 000000000000..8287212b0479 --- /dev/null +++ b/audio/alacenc/files/patch-vendor_alac_codec_EndianPortable.c @@ -0,0 +1,11 @@ +--- vendor/alac/codec/EndianPortable.c.orig 2022-09-22 17:41:40 UTC ++++ vendor/alac/codec/EndianPortable.c +@@ -37,6 +37,8 @@ + #define TARGET_RT_LITTLE_ENDIAN 1 + #elif defined(__aarch64__) + #define TARGET_RT_LITTLE_ENDIAN 1 ++#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ++#define TARGET_RT_LITTLE_ENDIAN 1 + #elif defined (TARGET_OS_WIN32) + #define TARGET_RT_LITTLE_ENDIAN 1 + #endif