openbsd-ports/archivers/xz/patches/patch-config_h_in
2012-06-25 11:07:22 +00:00

17 lines
535 B
Plaintext

$OpenBSD: patch-config_h_in,v 1.2 2012/06/25 11:07:22 naddy Exp $
--- config.h.in.orig Fri Jun 22 13:56:06 2012
+++ config.h.in Sat Jun 23 23:03:36 2012
@@ -292,7 +292,11 @@
/* Define to 1 if the system supports fast unaligned access to 16-bit and
32-bit integers. */
-#undef TUKLIB_FAST_UNALIGNED_ACCESS
+#include <sys/types.h>
+#if !defined(__STRICT_ALIGNMENT)
+#define \
+ TUKLIB_FAST_UNALIGNED_ACCESS 1
+#endif
/* Define to 1 if the amount of physical memory can be detected with
_system_configuration.physmem. */