From: Amos Jeffries Date: Fri, 24 Apr 2009 10:13:37 +0000 (+1200) Subject: Author: Unknown - NetBSD Project X-Git-Tag: SQUID_3_1_0_8~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f3c2a76d03886ffb8dd17e0bed7dc85db217862;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 b0ba10ad4d..7f60c64788 100644 --- a/configure.in +++ b/configure.in @@ -2247,6 +2247,7 @@ AC_CHECK_HEADERS( \ libc.h \ libgen.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 */