mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677)
This commit is contained in:
parent
db1c3d6316
commit
af204e4c47
2 changed files with 4 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue