tools: Fix xz build on FreeBSD 10.1
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 5 Feb 2015 16:57:57 +0000 (16:57 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 5 Feb 2015 16:57:57 +0000 (16:57 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44278

tools/xz/patches/100-freebsd-compat.patch [new file with mode: 0644]

diff --git a/tools/xz/patches/100-freebsd-compat.patch b/tools/xz/patches/100-freebsd-compat.patch
new file mode 100644 (file)
index 0000000..480a652
--- /dev/null
@@ -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 <byteswap.h>
+ #     ifdef HAVE_BSWAP_16