From: Amos Jeffries Date: Sat, 25 Apr 2009 02:14:13 +0000 (+1200) Subject: Author: Unknown - NetBSD Project X-Git-Tag: SQUID_3_0_STABLE15~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffccfe6c1295c4c7fd10b179f9a8d8067ac32275;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 ac367b8711..4a5c08c3b0 100644 --- a/configure.in +++ b/configure.in @@ -1883,6 +1883,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 05c46c3801..7b4d51e679 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 */