diff options
author | Andreas Färber | 2014-04-02 16:06:38 +0200 |
---|---|---|
committer | Peter Maydell | 2014-04-03 14:44:25 +0200 |
commit | de03c3164accc21311c39327601fcdd95da301f3 (patch) | |
tree | b3bc3a392dcb0181b5d12a54fa08905231efa833 /include | |
parent | PPC: openpic_kvm: Filter memory events properly (diff) | |
download | qemu-de03c3164accc21311c39327601fcdd95da301f3.tar.gz qemu-de03c3164accc21311c39327601fcdd95da301f3.tar.xz qemu-de03c3164accc21311c39327601fcdd95da301f3.zip |
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 <andreas.faerber@web.de>
Tested-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/bswap.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <sys/endian.h> # include <sys/types.h> # include <machine/bswap.h> +#elif defined(__FreeBSD__) +# include <sys/endian.h> #elif defined(CONFIG_BYTESWAP_H) # include <byteswap.h> |