From ae2e4eb18f2dfc4de89138a1d83c9a570f3b1189 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 5 Feb 2015 16:57:57 +0000 Subject: [PATCH] tools: Fix xz build on FreeBSD 10.1 Signed-off-by: Jo-Philipp Wich SVN-Revision: 44278 --- tools/xz/patches/100-freebsd-compat.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tools/xz/patches/100-freebsd-compat.patch diff --git a/tools/xz/patches/100-freebsd-compat.patch b/tools/xz/patches/100-freebsd-compat.patch new file mode 100644 index 0000000000..480a65293a --- /dev/null +++ b/tools/xz/patches/100-freebsd-compat.patch @@ -0,0 +1,11 @@ +--- a/src/common/tuklib_integer.h ++++ b/src/common/tuklib_integer.h +@@ -48,7 +48,7 @@ + // Operating system specific features // + //////////////////////////////////////// + +-#if defined(HAVE_BYTESWAP_H) ++#if defined(HAVE_BYTESWAP_H) && !defined(__FreeBSD__) + // glibc, uClibc, dietlibc + # include + # ifdef HAVE_BSWAP_16 -- 2.30.2