Module Name: src
Committed By: joerg
Date: Sat Apr 18 16:59:05 UTC 2015
Modified Files:
src/external/public-domain/xz/include: config.h
Log Message:
Use unaligned access if the platform supports it.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/public-domain/xz/include/config.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/public-domain/xz/include/config.h
diff -u src/external/public-domain/xz/include/config.h:1.4 src/external/public-domain/xz/include/config.h:1.5
--- src/external/public-domain/xz/include/config.h:1.4 Fri Apr 17 21:56:14 2015
+++ src/external/public-domain/xz/include/config.h Sat Apr 18 16:59:05 2015
@@ -359,9 +359,9 @@
/* Define to 1 if the system supports fast unaligned access to 16-bit and
32-bit integers. */
-#ifndef __NetBSD__
-/* Not all archs support this */
-#define TUKLIB_FAST_UNALIGNED_ACCESS 1
+#include <machine/types.h>
+#ifdef __NO_STRICT_ALIGNMENT
+# define TUKLIB_FAST_UNALIGNED_ACCESS 1
#endif
/* Define to 1 if the amount of physical memory can be detected with