|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] stubdom: gcc-4.3 support
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1215190804 -3600
# Node ID d37afe995ad36b7d27e57719430fc5a7318a9013
# Parent 10d5ec48f84cfb3f1480b2758054812f0f678806
stubdom: gcc-4.3 support
It seems we need to provide limits.h in the gcc-4.3 case.
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
extras/mini-os/include/posix/limits.h | 38 +++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletion(-)
diff -r 10d5ec48f84c -r d37afe995ad3 extras/mini-os/include/posix/limits.h
--- a/extras/mini-os/include/posix/limits.h Fri Jul 04 17:58:40 2008 +0100
+++ b/extras/mini-os/include/posix/limits.h Fri Jul 04 18:00:04 2008 +0100
@@ -1,8 +1,44 @@
#ifndef _POSIX_LIMITS_H
#define _POSIX_LIMITS_H
-#include_next <limits.h>
#include <arch_limits.h>
+
+#define CHAR_BIT 8
+
+#define SCHAR_MAX 0x7f
+#define SCHAR_MIN (-SCHAR_MAX-1)
+#define UCHAR_MAX 0xff
+
+#ifdef __CHAR_UNSIGNED__
+# define CHAR_MIN 0
+# define CHAR_MAX UCHAR_MAX
+#else
+# define CHAR_MIN SCHAR_MIN
+# define CHAR_MAX SCHAR_MAX
+#endif
+
+#define INT_MAX 0x7fffffff
+#define INT_MIN (-INT_MAX-1)
+#define UINT_MAX 0xffffffff
+
+#define SHRT_MAX 0x7fff
+
+#if defined(__x86_64__) || defined(__ia64__)
+# define LONG_MAX 0x7fffffffffffffffL
+# define ULONG_MAX 0xffffffffffffffffUL
+#else
+# define LONG_MAX 0x7fffffffL
+# define ULONG_MAX 0xffffffffUL
+#endif
+#define LONG_MIN (-LONG_MAX-1L)
+
+#define LLONG_MAX 0x7fffffffffffffffLL
+#define LLONG_MIN (-LLONG_MAX-1LL)
+#define ULLONG_MAX 0xffffffffffffffffULL
+
+#define LONG_LONG_MIN LLONG_MIN
+#define LONG_LONG_MAX LLONG_MAX
+#define ULONG_LONG_MAX ULLONG_MAX
#define PATH_MAX __PAGE_SIZE
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] stubdom: gcc-4.3 support,
Xen patchbot-unstable <=
|
|
|
|
|