Skip to content

Commit 112c32d

Browse files
committed
m68k platforms are big endian
The endianness fallback in tomcrypt_cfg.h lacked a check for the gcc define for m68k. I discovered this while building dropbear on A/UX 3.1.1 on a Macintosh Quadra 700 (yes, in 2021). Adding the check for the gcc __m68k__ define gets everything building. Signed-off-by: David Cantrell <david.l.cantrell@gmail.com>
1 parent d34c440 commit 112c32d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/headers/tomcrypt_cfg.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2);
182182
defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ || \
183183
defined(__BIG_ENDIAN__) || \
184184
defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || \
185-
defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__)
185+
defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) || \
186+
defined(__m68k__)
186187
#define ENDIAN_BIG
187188
#elif defined(_BYTE_ORDER) && _BYTE_ORDER == _LITTLE_ENDIAN || \
188189
defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN || \

0 commit comments

Comments
 (0)