pkgsrc/www/squid/patches/patch-bc
taca 338a75820b Update squid to 2.6.11 (squid-2.6.STABLE11).
Changes to squid-2.6.STABLE11 (Mar 17 2007)

	- Bug #1915: assertion failed: client_side.c:4055: "buf != NULL ||
	  !conn->body.request"
	- Handle garbage helper responses better in concurrent protocol format
	- Fix kqueue when overflowing the changes queue
	- Make sure the child worker process commits suicide if it could
	  not start up
	- Don't log short responses at debug level 1
	- Fix bswap16 & bwsap32 error on NetBSD
	- Fix collapsed_forwarding for non-GET requests
2007-03-17 15:14:27 +00:00

22 lines
814 B
Text

$NetBSD: patch-bc,v 1.3 2007/03/17 15:14:27 taca Exp $
--- include/ntlmauth.h.orig 2007-03-13 11:12:39.000000000 +0900
+++ include/ntlmauth.h
@@ -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))
#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 */
/* Used internally. Microsoft seems to think this is right, I believe them.