[OpenBIOS] [commit] r754 - trunk/fcode-utils-devel/shared
Andreas Färber
andreas.faerber at web.de
Mon May 24 11:35:38 CEST 2010
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 at 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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fcode-utils_types_osol.diff
Type: application/octet-stream
Size: 300 bytes
Desc: not available
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20100524/374fc0f6/attachment.obj>
-------------- next part --------------
More information about the OpenBIOS
mailing list