aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-02-05 16:57:57 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-02-05 16:57:57 +0000
commit75ea8c12e93261d442cb4b49f502568046752ce8 (patch)
tree387a14c63e419613b3151f74a9d5484f0ef19c64
parent072d2577322ef43d1e573f75cd37ee1ab2847eb2 (diff)
downloadmaster-187ad058-75ea8c12e93261d442cb4b49f502568046752ce8.tar.gz
master-187ad058-75ea8c12e93261d442cb4b49f502568046752ce8.tar.bz2
master-187ad058-75ea8c12e93261d442cb4b49f502568046752ce8.zip
tools: Fix xz build on FreeBSD 10.1
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44278 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--tools/xz/patches/100-freebsd-compat.patch11
1 files changed, 11 insertions, 0 deletions
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 <byteswap.h>
+ # ifdef HAVE_BSWAP_16