summaryrefslogtreecommitdiff
path: root/logger.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2018-03-15 12:57:51 -0700
committerdormando <dormando@rydia.net>2018-03-15 12:57:51 -0700
commit8333182bc8da1c4b4d4b482f67658c60690320cc (patch)
tree71014f3675c68df7055a0cbcfdd5260cd02966b1 /logger.h
parent8bdf0a3bb92046814aebf920eda823d1718ce2c7 (diff)
downloadmemcached-8333182bc8da1c4b4d4b482f67658c60690320cc.tar.gz
Fix SIGBUS from alignment issues on 64bit ARM
ARMv8 (and in general aarch64) has flipped some strictness requirements. However, at some point in history the NEED_ALIGN configure check code was optimized away by GCC. This fixes detection of alignment, as well as fixes an unaligned access that snuck in via the logging code. Also fixes a 64bit GCC atomics test that possibly never worked before.
Diffstat (limited to 'logger.h')
-rw-r--r--logger.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/logger.h b/logger.h
index 3d4c44c..730c86f 100644
--- a/logger.h
+++ b/logger.h
@@ -100,6 +100,7 @@ struct logentry_item_store {
typedef struct _logentry {
enum log_entry_subtype event;
+ uint8_t pad;
uint16_t eflags;
uint64_t gid;
struct timeval tv; /* not monotonic! */