WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] stubdom: gcc-4.3 support

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] stubdom: gcc-4.3 support
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Fri, 4 Jul 2008 17:58:46 +0100
Delivery-date: Fri, 04 Jul 2008 09:59:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
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>

diff -r 56b71461a007 extras/mini-os/include/posix/limits.h
--- a/extras/mini-os/include/posix/limits.h     Fri Jul 04 17:22:30 2008 +0100
+++ b/extras/mini-os/include/posix/limits.h     Fri Jul 04 17:51:26 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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] stubdom: gcc-4.3 support, Samuel Thibault <=