summaryrefslogtreecommitdiff
path: root/www/squid/patches/patch-bc
diff options
context:
space:
mode:
Diffstat (limited to 'www/squid/patches/patch-bc')
-rw-r--r--www/squid/patches/patch-bc11
1 files changed, 7 insertions, 4 deletions
diff --git a/www/squid/patches/patch-bc b/www/squid/patches/patch-bc
index 472f5f423c7..8e889fcb3d1 100644
--- a/www/squid/patches/patch-bc
+++ b/www/squid/patches/patch-bc
@@ -1,18 +1,21 @@
-$NetBSD: patch-bc,v 1.2 2006/09/13 14:41:58 taca Exp $
+$NetBSD: patch-bc,v 1.2.4.1 2007/03/22 08:36:19 ghen Exp $
---- include/ntlmauth.h.orig 2005-05-18 01:56:35.000000000 +0900
+--- include/ntlmauth.h.orig 2007-03-13 11:12:39.000000000 +0900
+++ include/ntlmauth.h
-@@ -70,10 +70,14 @@
+@@ -70,6 +70,9 @@
#define bswap16(x) bswap_16(x)
#define bswap32(x) bswap_32(x)
#else /* HAVE_BISTWAP_H */
+#ifdef HAVE_MACHINE_BYTE_SWAP_H
+#include <machine/byte_swap.h>
+#else /* HAVE_MACHINE_BYTE_SWAP_H */
+ #ifndef bswap16
#define bswap16(x) (((((u_int16_t)x) >> 8) & 0xff) | ((((u_int16_t)x) & 0xff) << 8))
- #define bswap32(x) \
+ #endif
+@@ -78,6 +81,7 @@
(((((u_int32_t)x) & 0xff000000) >> 24) | ((((u_int32_t)x) & 0x00ff0000) >> 8) | \
((((u_int32_t)x) & 0x0000ff00) << 8) | ((((u_int32_t)x) & 0x000000ff) << 24))
+ #endif
+#endif /* HAVE_MACHINE_BYTE_SWAP_H */
#endif /* HAVE_BITSWAP_H */