]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Unknown - NetBSD Project
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 Apr 2009 02:14:13 +0000 (14:14 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 Apr 2009 02:14:13 +0000 (14:14 +1200)
NetBSD uses machine/byte_swap.h for endian defines

configure.in
include/squid_endian.h

index ac367b87117361914b5cf59b2e5700325d3b9d12..4a5c08c3b0d75434ebf8a8ad7a5e0a38e820b3f9 100644 (file)
@@ -1883,6 +1883,7 @@ AC_CHECK_HEADERS( \
        ipl.h \
        libc.h \
        limits.h \
+       machine/byte_swap.h \
        malloc.h \
        math.h \
        memory.h \
index 05c46c3801fce0ff28f1bfd0a56934c144473f1a..7b4d51e679582789005cff3ced882d2d56145ecc 100644 (file)
 #if HAVE_BYTESWAP_H
 #  include <byteswap.h>
 #endif /* HAVE_BYTESWAP_H */
+#ifdef HAVE_MACHINE_BYTE_SWAP_H
+#  include <machine/byte_swap.h>
+#endif /* HAVE_MACHINE_BYTE_SWAP_H */
 #if HAVE_SYS_BSWAP_H
 #  include <sys/bswap.h>
-#endif /* HAVE_MACHINE_BSWAP_H */
+#endif /* HAVE_SYS_BSWAP_H */
 #if HAVE_SYS_ENDIAN_H
 #  include <sys/endian.h>
 #endif /* HAVE_SYS_ENDIAN_H */