svn commit: r304969 - head/sbin/hastd
Dimitry Andric
dim at FreeBSD.org
Sun Aug 28 21:26:12 UTC 2016
Author: dim
Date: Sun Aug 28 21:26:11 2016
New Revision: 304969
URL: https://svnweb.freebsd.org/changeset/base/304969
Log:
Define hastd's STRICT_ALIGN macro in a defined and portable way.
MFC after: 3 days
Modified:
head/sbin/hastd/lzf.h
Modified: head/sbin/hastd/lzf.h
==============================================================================
--- head/sbin/hastd/lzf.h Sun Aug 28 20:53:31 2016 (r304968)
+++ head/sbin/hastd/lzf.h Sun Aug 28 21:26:11 2016 (r304969)
@@ -132,7 +132,11 @@ lzf_decompress (const void *const in_dat
* 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
/*
More information about the svn-src-head
mailing list