From 281528655c7c918963a894707cff67c742d7a999 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 31 Jul 2010 16:18:35 +0200 Subject: fix cross-compile on FreeBSD host --- package/squid/patches/patch-include_squid_endian_h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/squid/patches/patch-include_squid_endian_h (limited to 'package/squid/patches/patch-include_squid_endian_h') diff --git a/package/squid/patches/patch-include_squid_endian_h b/package/squid/patches/patch-include_squid_endian_h new file mode 100644 index 000000000..b89b1121c --- /dev/null +++ b/package/squid/patches/patch-include_squid_endian_h @@ -0,0 +1,15 @@ +--- squid-3.1.4.orig/include/squid_endian.h 2010-05-30 15:21:11.000000000 +0200 ++++ squid-3.1.4/include/squid_endian.h 2010-07-31 14:29:02.000000000 +0200 +@@ -65,9 +65,12 @@ + * + * Some systems define htobe16()/be16toh() and friends in . + */ ++#include ++#if !defined(BSD) + #if HAVE_BYTESWAP_H + # include + #endif /* HAVE_BYTESWAP_H */ ++#endif + #ifdef HAVE_MACHINE_BYTE_SWAP_H + # include + #endif /* HAVE_MACHINE_BYTE_SWAP_H */ -- cgit v1.2.3