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

configure.in
include/squid_endian.h

index b0ba10ad4de4555cc2c27e326ea6adaf13ae20f8..7f60c64788cfc6ffd07fb2bd9cba5caf9c018eb6 100644 (file)
@@ -2247,6 +2247,7 @@ AC_CHECK_HEADERS( \
        libc.h \
        libgen.h \
        limits.h \
+       machine/byte_swap.h \
        malloc.h \
        math.h \
        memory.h \
index 384e8801f9e95b2d0ac578a7c5dd751e5c6eca14..e0e92c70a1859f543912a6ac4f98c65536140781 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 */