aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--include/compat/machine/endian.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index acfe307..75b88fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,7 +76,6 @@ AC_ARG_ENABLE([tests],
76AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes]) 76AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = xyes])
77 77
78AS_CASE([$host_cpu], 78AS_CASE([$host_cpu],
79 [*sparc*], [CPPFLAGS="$CPPFLAGS -D__STRICT_ALIGNMENT"],
80 [*arm*], [host_cpu=arm], 79 [*arm*], [host_cpu=arm],
81 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], 80 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel],
82 [i?86], [HOSTARCH=intel], 81 [i?86], [HOSTARCH=intel],
diff --git a/include/compat/machine/endian.h b/include/compat/machine/endian.h
index 54267a8..4dcb60d 100644
--- a/include/compat/machine/endian.h
+++ b/include/compat/machine/endian.h
@@ -41,6 +41,7 @@
41#define __STRICT_ALIGNMENT 41#define __STRICT_ALIGNMENT
42#if defined(__i386) || defined(__i386__) || \ 42#if defined(__i386) || defined(__i386__) || \
43 defined(__x86_64) || defined(__x86_64__) || \ 43 defined(__x86_64) || defined(__x86_64__) || \
44 defined(__s390__) || defined(__s390x__) || \
44 defined(__aarch64__) || \ 45 defined(__aarch64__) || \
45 ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6) 46 ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6)
46#undef __STRICT_ALIGNMENT 47#undef __STRICT_ALIGNMENT