summaryrefslogtreecommitdiff
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
commitd49242aae290a8f3d0bc84455ec9b8bda30c813c (patch)
treefe6e50a78dc7a3608b89dd27d50bbab7d2060a48
parent2cdba572f91b77bd46f088ef000436d07fc44544 (diff)
downloadmtk-20170518-d49242aae290a8f3d0bc84455ec9b8bda30c813c.zip
mtk-20170518-d49242aae290a8f3d0bc84455ec9b8bda30c813c.tar.gz
mtk-20170518-d49242aae290a8f3d0bc84455ec9b8bda30c813c.tar.bz2
tools: Fix xz build on FreeBSD 10.1
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44278
-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 0000000..480a652
--- /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