From 1cc2f8407bf9d91edfd8ec3b21905c5d048e2c03 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Thu, 23 Apr 2009 21:12:06 +1200 Subject: [PATCH] Author: Unknown - NetBSD Project NetBSD uses machine/byte_swap.h for endian defines --- configure.in | 1 + include/squid_endian.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.47.3