From: Andreas Färber Date: Wed, 2 Apr 2014 14:06:38 +0000 (+0200) Subject: bswap: Fix build on FreeBSD 10.0 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=de03c3164accc21311c39327601fcdd95da301f3;p=qemu.git bswap: Fix build on FreeBSD 10.0 FreeBSD 10.0-RELEASE has bswap16() etc. macros defined in sys/endian.h, which leads to a conflict with our static inline definitions. Force using the system version of the macros. Signed-off-by: Andreas Färber Tested-by: Ed Maste Signed-off-by: Peter Maydell --- diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h index 0cb7c05554..0f9c6cf15d 100644 --- a/include/qemu/bswap.h +++ b/include/qemu/bswap.h @@ -11,6 +11,8 @@ # include # include # include +#elif defined(__FreeBSD__) +# include #elif defined(CONFIG_BYTESWAP_H) # include