diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-05 16:57:57 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-05 16:57:57 +0000 |
commit | d49242aae290a8f3d0bc84455ec9b8bda30c813c (patch) | |
tree | fe6e50a78dc7a3608b89dd27d50bbab7d2060a48 /tools/xz/patches | |
parent | 2cdba572f91b77bd46f088ef000436d07fc44544 (diff) | |
download | upstream-d49242aae290a8f3d0bc84455ec9b8bda30c813c.tar.gz upstream-d49242aae290a8f3d0bc84455ec9b8bda30c813c.tar.bz2 upstream-d49242aae290a8f3d0bc84455ec9b8bda30c813c.zip |
tools: Fix xz build on FreeBSD 10.1
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44278
Diffstat (limited to 'tools/xz/patches')
-rw-r--r-- | tools/xz/patches/100-freebsd-compat.patch | 11 |
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 |