Description: Rely on __BYTE_ORDER__ regarding endianness
 rather than on a specific type of CPU. 
Author: Sven Geuer <sge@debian.org>
Bug: https://github.com/trendmicro/tlsh/issues/131
Forwarded: https://github.com/trendmicro/tlsh/pull/155
Last-Update: 2025-12-03
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/include/tlsh_impl.h
+++ b/include/tlsh_impl.h
@@ -139,12 +139,10 @@
         unsigned char checksum[TLSH_CHECKSUM_LEN];  // 1 to 3 bytes
         unsigned char Lvalue;                       // 1 byte
         union {
-#if defined(__SPARC) || defined(_AIX)
 		#pragma pack(1)
-#endif
         unsigned char QB;
             struct{
-#if defined(__SPARC) || defined(_AIX)
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
 		unsigned char Q2ratio : 4;
 		unsigned char Q1ratio : 4;
 #else
