[OpenBIOS] [PATCH] fcode-utils: Add type support for Haiku

Andreas Färber andreas.faerber at web.de
Sun Sep 19 19:11:16 CEST 2010

Haiku does not have asm/types.h. It does have [u]int*_t but not
in sys/types.h. Use stdint.h instead, that works for both Haiku and
OpenSolaris and avoids more code duplication in shared/types.h.

Signed-off-by: Andreas Färber <andreas.faerber at web.de>
Cc: Stefan Reinauer <stepan at openbios.org>
 shared/types.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/shared/types.h b/shared/types.h
index ff24355..9d67c85 100644
--- a/shared/types.h
+++ b/shared/types.h
@@ -52,9 +52,9 @@ typedef u_int16_t u16;
 typedef int32_t s32;
 typedef u_int32_t u32;
-#elif defined(__sun__)
+#elif defined(__sun__) || defined(__HAIKU__)
-#include <sys/types.h>
+#include <stdint.h>
 typedef int8_t s8;
 typedef uint8_t u8;

More information about the OpenBIOS mailing list