Commit f649f7951d52bdfc1841c6caea0d3d47f1e20d60

Stefan Reinauer 2010-04-26T15:39:20

fcode-utils: support compilation on solaris. git-svn-id: svn://coreboot.org/openbios/trunk/fcode-utils-devel@754 f158a5a8-5612-0410-a976-696ce0be7e32

diff --git a/shared/types.h b/shared/types.h
index cd23a1e..9c96a0d 100644
--- a/shared/types.h
+++ b/shared/types.h
@@ -40,6 +40,7 @@
  **************************************************************************** */
 
 #if defined(__APPLE__)
+
 #include <sys/types.h>
 
 typedef int8_t s8;
@@ -51,6 +52,22 @@ typedef u_int16_t u16;
 typedef int32_t s32;
 typedef u_int32_t u32;
 
+#elif defined(__sparc)
+
+#include <sys/types.h>
+
+typedef int8_t s8;
+typedef uint8_t u8;
+
+typedef int16_t s16;
+typedef uint16_t u16;
+
+typedef int32_t s32;
+typedef uint32_t u32;
+
+typedef int64_t s64;
+typedef uint64_t u64;
+
 #else
 
 #include <asm/types.h>
@@ -63,6 +80,7 @@ typedef __u16   u16;
 
 typedef __s32   s32;
 typedef __u32   u32;
+
 #endif
 
 #ifdef FALSE            /*  Hack for AIX.     */