From: Amos Jeffries Date: Thu, 23 Apr 2009 09:12:06 +0000 (+1200) Subject: Author: Unknown - NetBSD Project X-Git-Tag: SQUID_3_2_0_1~1051 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1cc2f8407bf9d91edfd8ec3b21905c5d048e2c03;p=thirdparty%2Fsquid.git Author: Unknown - NetBSD Project NetBSD uses machine/byte_swap.h for endian defines --- diff --git a/configure.in b/configure.in index 1b6e7027c0..a725928dd6 100644 --- a/configure.in +++ b/configure.in @@ -2263,6 +2263,7 @@ AC_CHECK_HEADERS( \ ipl.h \ libc.h \ limits.h \ + machine/byte_swap.h \ malloc.h \ math.h \ memory.h \ diff --git a/include/squid_endian.h b/include/squid_endian.h index 384e8801f9..e0e92c70a1 100644 --- a/include/squid_endian.h +++ b/include/squid_endian.h @@ -68,9 +68,12 @@ #if HAVE_BYTESWAP_H # include #endif /* HAVE_BYTESWAP_H */ +#ifdef HAVE_MACHINE_BYTE_SWAP_H +# include +#endif /* HAVE_MACHINE_BYTE_SWAP_H */ #if HAVE_SYS_BSWAP_H # include -#endif /* HAVE_MACHINE_BSWAP_H */ +#endif /* HAVE_SYS_BSWAP_H */ #if HAVE_SYS_ENDIAN_H # include #endif /* HAVE_SYS_ENDIAN_H */