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(a)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>