]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Unknown - NetBSD Project
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Apr 2009 09:12:06 +0000 (21:12 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 23 Apr 2009 09:12:06 +0000 (21:12 +1200)
NetBSD uses machine/byte_swap.h for endian defines

configure.in
include/squid_endian.h

index 1b6e7027c0b5f3b472bdb8b204f3b1c9d1ef2f5b..a725928dd69cc900f307979bed345ff010c9e91d 100644 (file)
@@ -2263,6 +2263,7 @@ AC_CHECK_HEADERS( \
        ipl.h \
        libc.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 */