summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-08-31 18:37:04 +0000
committerdim <dim@FreeBSD.org>2016-08-31 18:37:04 +0000
commit1f035a616d39dfdb3e0a7cd2ef7741d68b896a4a (patch)
treeae896117543fd6fd60b3245269d3cbafe2c042fc /sbin
parentfc932588a66fcd53d6646257d3050b84cd7561f3 (diff)
downloadFreeBSD-src-1f035a616d39dfdb3e0a7cd2ef7741d68b896a4a.zip
FreeBSD-src-1f035a616d39dfdb3e0a7cd2ef7741d68b896a4a.tar.gz
MFC r304969:
Define hastd's STRICT_ALIGN macro in a defined and portable way.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/hastd/lzf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/hastd/lzf.h b/sbin/hastd/lzf.h
index d9563ef..b1ad52e 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
/*
OpenPOWER on IntegriCloud