From 1360677cfe3ca8f945fa1de77823df21a77e4500 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Fri, 5 Dec 2008 17:54:09 +0000 Subject: Attached patch makes NetBSD use the native bswap functions which compile. Signed-off-by: Christoph Egger git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5886 c046a42c-6fe2-441c-8c8c-71466251a162 --- bswap.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bswap.h') diff --git a/bswap.h b/bswap.h index 523d805..08b77d9 100644 --- a/bswap.h +++ b/bswap.h @@ -5,6 +5,12 @@ #include +#ifdef HAVE_MACHINE_BSWAP_H +#include +#include +#include +#else + #ifdef HAVE_BYTESWAP_H #include #else @@ -58,6 +64,8 @@ static inline uint64_t bswap64(uint64_t x) return bswap_64(x); } +#endif /* ! HAVE_MACHINE_BSWAP_H */ + static inline void bswap16s(uint16_t *s) { *s = bswap16(*s); -- cgit v1.1