From 2f7d512b419cb75cef2e27db872d641de6e7aa0d Mon Sep 17 00:00:00 2001 From: Adrian Knoth Date: Wed, 9 Jan 2013 12:48:52 +0100 Subject: [PATCH] Fix bus error on ARM platforms With the current code, packed structs lead to unaligned memory access, thus causing SIGBUS on ARM. Let's disable packing on ARM for now. Since it's only used for mixed 32/64bit jackd installations and we're not facing such a scenario on ARM, there's little use to worry more atm. --- common/jack/systemdeps.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/jack/systemdeps.h b/common/jack/systemdeps.h index 3c3c064f..af4a1755 100644 --- a/common/jack/systemdeps.h +++ b/common/jack/systemdeps.h @@ -120,4 +120,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #endif /* __APPLE__ || __linux__ || __sun__ || sun */ +#if defined(__arm__) + #undef POST_PACKED_STRUCTURE + #define POST_PACKED_STRUCTURE +#endif /* __arm__ */ + #endif