Skip to content

Commit 652a46e

Browse files
devnexenpm215
authored andcommitted
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 <[email protected]> Reviewed-by: Peter Maydell <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Peter Maydell <[email protected]> Message-id: [email protected] [PMM: Expanded commit message] Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
1 parent 8bf0f17 commit 652a46e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/qemu/bswap.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# include <machine/bswap.h>
99
#elif defined(__FreeBSD__)
1010
# include <sys/endian.h>
11+
#elif defined(__HAIKU__)
12+
# include <endian.h>
1113
#elif defined(CONFIG_BYTESWAP_H)
1214
# include <byteswap.h>
1315

0 commit comments

Comments
 (0)