mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
072d257732
commit
75ea8c12e9
11
tools/xz/patches/100-freebsd-compat.patch
Normal file
11
tools/xz/patches/100-freebsd-compat.patch
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user