svn commit: r305142 - in stable: 10/sbin/hastd 11/sbin/hastd

Dimitry Andric dim at FreeBSD.org
Wed Aug 31 18:37:06 UTC 2016


Author: dim
Date: Wed Aug 31 18:37:04 2016
New Revision: 305142
URL: https://svnweb.freebsd.org/changeset/base/305142

Log:
  MFC r304969:
  
  Define hastd's STRICT_ALIGN macro in a defined and portable way.

Modified:
  stable/11/sbin/hastd/lzf.h
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/10/sbin/hastd/lzf.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/11/sbin/hastd/lzf.h
==============================================================================
--- stable/11/sbin/hastd/lzf.h	Wed Aug 31 18:35:41 2016	(r305141)
+++ stable/11/sbin/hastd/lzf.h	Wed Aug 31 18:37:04 2016	(r305142)
@@ -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-all mailing list