j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: stepan Date: Mon Apr 26 17:39:20 2010 New Revision: 754 URL: http://tracker.coreboot.org/trac/openbios/changeset/754
Log: fcode-utils: support compilation on solaris.
Modified: trunk/fcode-utils-devel/shared/types.h
Modified: trunk/fcode-utils-devel/shared/types.h ============================================================================== --- trunk/fcode-utils-devel/shared/types.h Mon Apr 26 15:06:48 2010 (r753) +++ trunk/fcode-utils-devel/shared/types.h Mon Apr 26 17:39:20 2010 (r754) @@ -40,6 +40,7 @@ **************************************************************************** */
#if defined(__APPLE__) + #include <sys/types.h>
typedef int8_t s8; @@ -51,6 +52,22 @@ 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 __s32 s32; typedef __u32 u32; + #endif
#ifdef FALSE /* Hack for AIX. */
Hello,
Am 26.04.2010 um 17:39 schrieb repository service:
Log: fcode-utils: support compilation on solaris.
Modified: trunk/fcode-utils-devel/shared/types.h
Modified: trunk/fcode-utils-devel/shared/types.h = = = = = = = = ====================================================================== --- trunk/fcode-utils-devel/shared/types.h Mon Apr 26 15:06:48 2010 (r753) +++ trunk/fcode-utils-devel/shared/types.h Mon Apr 26 17:39:20 2010 (r754)
@@ -51,6 +52,22 @@ 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>
I've had a very similar patch lying around for OpenSolaris amd64, so I think we can generalize this as follows.
Signed-off-by: Andreas Faerber afaerber@opensolaris.org
Index: shared/types.h =================================================================== --- shared/types.h (revision 774) +++ shared/types.h (working copy) @@ -52,7 +52,7 @@ typedef int32_t s32; typedef u_int32_t u32;
-#elif defined(__sparc) +#elif defined(__sun__)
#include <sys/types.h>