[3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677)

This commit is contained in:
samypr100 2022-10-28 06:13:44 -04:00 committed by GitHub
parent db1c3d6316
commit af204e4c47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
Fix ``NO_MISALIGNED_ACCESSES`` being not defined for the SHA3 extension
when ``HAVE_ALIGNED_REQUIRED`` is set. Allowing builds on hardware that
unaligned memory accesses are not allowed.

View file

@ -65,7 +65,7 @@
#endif
/* Prevent bus errors on platforms requiring aligned accesses such ARM. */
#if HAVE_ALIGNED_REQUIRED && !defined(NO_MISALIGNED_ACCESSES)
#if defined(HAVE_ALIGNED_REQUIRED) && !defined(NO_MISALIGNED_ACCESSES)
#define NO_MISALIGNED_ACCESSES
#endif