Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2016 18:37:05 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r305142 - in stable: 10/sbin/hastd 11/sbin/hastd
Message-ID:  <201608311837.u7VIb5IA052506@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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/10/sbin/hastd/lzf.h
Directory Properties:
  stable/10/   (props changed)

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

Modified: stable/10/sbin/hastd/lzf.h
==============================================================================
--- stable/10/sbin/hastd/lzf.h	Wed Aug 31 18:35:41 2016	(r305141)
+++ stable/10/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
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608311837.u7VIb5IA052506>