Date: Sun, 28 Aug 2016 21:26:11 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r304969 - head/sbin/hastd Message-ID: <201608282126.u7SLQB0v070081@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608282126.u7SLQB0v070081>