From 0010a02cb173cecb267609c81e6ba0688982ec81 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 21 Jan 2021 09:26:47 +0700 Subject: [PATCH] Disallow UNALIGNED_FETCH_OK on ARM, not LINUX. (#258) UNALIGNED_FETCH_OK shouldn't be set for an entire OS, but based on the CPU architecture. Some ARM systems don't allow unaligned reads. x86 and x86_64 do, so update how we configure this. --- inc/version.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/inc/version.h b/inc/version.h index 4171ff1..2210c03 100644 --- a/inc/version.h +++ b/inc/version.h @@ -213,7 +213,7 @@ error Must specify RELEASE to build Medley. /* Not all platforms want to do unaligned reads, so * we will disable those here. */ -#if defined(MAIKO_ARCH_SPARC) +#if defined(MAIKO_ARCH_SPARC) || defined(MAIKO_ARCH_ARM) #undef UNALIGNED_FETCH_OK #endif @@ -232,17 +232,6 @@ error Must specify RELEASE to build Medley. - /********************************************************/ - /* */ - /********************************************************/ -#ifdef LINUX - /* LINUX, the free POSIX-compliant Unix */ -#undef UNALIGNED_FETCH_OK -#endif /* LINUX */ - - - - /********************************************************/ /* */ /********************************************************/