From 1fc157ae9102c6ac25199eb83230a1f78313ff76 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 28 Aug 2016 21:26:11 +0000 Subject: [PATCH] Define hastd's STRICT_ALIGN macro in a defined and portable way. MFC after: 3 days --- sbin/hastd/lzf.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sbin/hastd/lzf.h b/sbin/hastd/lzf.h index d9563efa3f1..b1ad52eaf2b 100644 --- a/sbin/hastd/lzf.h +++ b/sbin/hastd/lzf.h @@ -132,7 +132,11 @@ lzf_decompress (const void *const in_data, unsigned int in_len, * Unconditionally aligning does not cost very much, so do it if unsure */ #ifndef STRICT_ALIGN -# define STRICT_ALIGN !(defined(__i386) || defined (__amd64)) +# if !(defined(__i386) || defined (__amd64)) +# define STRICT_ALIGN 1 +# else +# define STRICT_ALIGN 0 +# endif #endif /*