Codebase list squeezelite / 192a544 alpine / libalac / fix-arm-segfault.patch
192a544

Tree @192a544 (Download .tar.gz)

fix-arm-segfault.patch @192a544raw · history · blame

diff --git a/codec/EndianPortable.c b/codec/EndianPortable.c
index 5a7d5b8..b8423c9 100644
--- a/codec/EndianPortable.c
+++ b/codec/EndianPortable.c
@@ -40,6 +40,8 @@
 #define TARGET_RT_LITTLE_ENDIAN 1
 #elif defined (TARGET_OS_WIN32)
 #define TARGET_RT_LITTLE_ENDIAN 1
+#elif defined (__arm__) || defined(__aarch64__)
+#define TARGET_RT_LITTLE_ENDIAN 1
 #endif
 
 uint16_t Swap16NtoB(uint16_t inUInt16)