Author: jow
Date: 2015-02-05 17:57:57 +0100 (Thu, 05 Feb 2015)
New Revision: 44278

Added:
   trunk/tools/xz/patches/
   trunk/tools/xz/patches/100-freebsd-compat.patch
Log:
tools: Fix xz build on FreeBSD 10.1

Signed-off-by: Jo-Philipp Wich <[email protected]>

Added: trunk/tools/xz/patches/100-freebsd-compat.patch
===================================================================
--- trunk/tools/xz/patches/100-freebsd-compat.patch                             
(rev 0)
+++ trunk/tools/xz/patches/100-freebsd-compat.patch     2015-02-05 16:57:57 UTC 
(rev 44278)
@@ -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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to