summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid CARLIER2020-07-13 15:36:10 +0200
committerPeter Maydell2020-07-13 15:36:10 +0200
commit652a46ebba970017c7a23767dcc983265cdb8eb7 (patch)
tree10dc6981fb5239e7b34b31b5c0a28a0c59e1cc42
parentosdep.h: For Haiku, define SIGIO as equivalent to SIGPOLL (diff)
downloadqemu-652a46ebba970017c7a23767dcc983265cdb8eb7.tar.gz
qemu-652a46ebba970017c7a23767dcc983265cdb8eb7.tar.xz
qemu-652a46ebba970017c7a23767dcc983265cdb8eb7.zip
bswap.h: Include <endian.h> on Haiku for bswap operations
Haiku puts the bswap* functions in <endian.h>; pull in that include file on that platform. Signed-off-by: David Carlier <devnexen@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20200703145614.16684-7-peter.maydell@linaro.org [PMM: Expanded commit message] Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--include/qemu/bswap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h
index 2a9f3fe783..1d3e4c24e4 100644
--- a/include/qemu/bswap.h
+++ b/include/qemu/bswap.h
@@ -8,6 +8,8 @@
# include <machine/bswap.h>
#elif defined(__FreeBSD__)
# include <sys/endian.h>
+#elif defined(__HAIKU__)
+# include <endian.h>
#elif defined(CONFIG_BYTESWAP_H)
# include <byteswap.h>