summaryrefslogtreecommitdiff
path: root/www/squid/patches/patch-bc
blob: 472f5f423c7e419a28430903355057e0e20ac626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-bc,v 1.2 2006/09/13 14:41:58 taca Exp $

--- include/ntlmauth.h.orig	2005-05-18 01:56:35.000000000 +0900
+++ include/ntlmauth.h
@@ -70,10 +70,14 @@
 #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 */
 #define bswap16(x) (((((u_int16_t)x) >> 8) & 0xff) | ((((u_int16_t)x) & 0xff) << 8))
 #define bswap32(x) \
     (((((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	/* HAVE_MACHINE_BYTE_SWAP_H */
 #endif /* HAVE_BITSWAP_H */
 
 /* Used internally. Microsoft seems to think this is right, I believe them.