Commit b3cd2c846cc590a6ae61b6bd8ba6a02548d6d517

Stefan Reinauer 2006-10-14T20:17:30

fix types on Mac OS X git-svn-id: svn://coreboot.org/openbios/fcode-utils@88 f158a5a8-5612-0410-a976-696ce0be7e32

diff --git a/shared/types.h b/shared/types.h
index 300b96a..7a8180e 100644
--- a/shared/types.h
+++ b/shared/types.h
@@ -39,6 +39,19 @@
  *
  **************************************************************************** */
 
+#if defined(__ppc__) && defined(__APPLE__)
+#include <sys/types.h>
+
+typedef int8_t s8;
+typedef u_int8_t u8;
+
+typedef int16_t s16;
+typedef u_int16_t u16;
+
+typedef int32_t s32;
+typedef u_int32_t u32;
+
+#else
 
 #include <asm/types.h>
 
@@ -50,6 +63,7 @@ typedef __u16   u16;
 
 typedef __s32   s32;
 typedef __u32   u32;
+#endif
 
 #ifdef FALSE            /*  Hack for AIX.     */
 #undef FALSE