瀏覽代碼

tools: Fix xz build on FreeBSD 10.1

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

SVN-Revision: 44278
Jo-Philipp Wich 10 年之前
父節點
當前提交
d49242aae2
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      tools/xz/patches/100-freebsd-compat.patch

+ 11 - 0
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