Skip to content

Commit f649f79

Browse files
author
Stefan Reinauer
committed
fcode-utils: support compilation on solaris.
git-svn-id: svn://coreboot.org/openbios/trunk/fcode-utils-devel@754 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent 08b0f19 commit f649f79

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

shared/types.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
**************************************************************************** */
4141

4242
#if defined(__APPLE__)
43+
4344
#include <sys/types.h>
4445

4546
typedef int8_t s8;
@@ -51,6 +52,22 @@ typedef u_int16_t u16;
5152
typedef int32_t s32;
5253
typedef u_int32_t u32;
5354

55+
#elif defined(__sparc)
56+
57+
#include <sys/types.h>
58+
59+
typedef int8_t s8;
60+
typedef uint8_t u8;
61+
62+
typedef int16_t s16;
63+
typedef uint16_t u16;
64+
65+
typedef int32_t s32;
66+
typedef uint32_t u32;
67+
68+
typedef int64_t s64;
69+
typedef uint64_t u64;
70+
5471
#else
5572

5673
#include <asm/types.h>
@@ -63,6 +80,7 @@ typedef __u16 u16;
6380

6481
typedef __s32 s32;
6582
typedef __u32 u32;
83+
6684
#endif
6785

6886
#ifdef FALSE /* Hack for AIX. */

0 commit comments

Comments
 (0)