diff options
author | dim <dim@FreeBSD.org> | 2016-08-31 18:37:04 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-08-31 18:37:04 +0000 |
commit | 1f035a616d39dfdb3e0a7cd2ef7741d68b896a4a (patch) | |
tree | ae896117543fd6fd60b3245269d3cbafe2c042fc /sbin | |
parent | fc932588a66fcd53d6646257d3050b84cd7561f3 (diff) | |
download | FreeBSD-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.h | 6 |
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 /* |