[Python-modules-commits] [python-dmidecode] 04/10: Don't use unaligned access on ARM
Sandro Tosi
morph at moszumanska.debian.org
Wed Dec 6 04:58:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository python-dmidecode.
commit 352feab1a5753c19d3d661c2000d793f75160858
Author: Sandro Tosi <morph at debian.org>
Date: Tue Dec 5 18:45:36 2017 -0500
Don't use unaligned access on ARM
Depending on CPU and kernel config, unaligned access may raise SIGBUS on
ARM. Use the slower, but safe, implementation instead.
Author: Steve Langasek <steve.langasek at ubuntu.com>
Last-Update: 2017-06-18
---
src/config.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/config.h b/src/config.h
index 4fb28df..ac3c942 100644
--- a/src/config.h
+++ b/src/config.h
@@ -53,7 +53,7 @@
#endif
/* Use memory alignment workaround or not */
-#ifdef __ia64__
+#if defined(__ia64__) || defined(__arm__)
#define ALIGNMENT_WORKAROUND
#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-dmidecode.git
More information about the Python-modules-commits
mailing list