summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2017-02-23 22:39:44 +0800
committerSalvatore Sanfilippo <antirez@gmail.com>2017-02-23 22:39:44 +0800
commitb3391fd853d55b3da04ede024adcc6bf017c78f1 (patch)
tree4901d1a9b129dcf61d8677debc639180d8e6c411 /src/config.h
parentd7826823c05ad82f710da74c3d5d402898187888 (diff)
downloadredis-b3391fd853d55b3da04ede024adcc6bf017c78f1.tar.gz
Use ARM unaligned accesses ifdefs for SPARC as well.
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 1005dcc2a..c23f1c789 100644
--- a/src/config.h
+++ b/src/config.h
@@ -215,4 +215,13 @@ void setproctitle(const char *fmt, ...);
#define __arm64__
#endif
+/* Make sure we can test for SPARC just checking for __sparc__. */
+#if defined(__sparc) && !defined(__sparc__)
+#define __sparc__
+#endif
+
+#if defined(__sparc__) || defined(__arm__)
+#define USE_ALIGNED_ACCESS
+#endif
+
#endif