[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] stubdom: Backport fix for SIZE_MAX from newlib 1.17.0
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1251213962 -3600 # Node ID 49bfec374bafbbb09c8e7dad6d96474eb6f6c6a4 # Parent 8faef78ea759d9bea56bea4da9c2ec8d40869bb3 stubdom: Backport fix for SIZE_MAX from newlib 1.17.0 Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- stubdom/Makefile | 1 + stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch | 10 ++++++++++ 2 files changed, 11 insertions(+) diff -r 8faef78ea759 -r 49bfec374baf stubdom/Makefile --- a/stubdom/Makefile Tue Aug 25 15:36:37 2009 +0100 +++ b/stubdom/Makefile Tue Aug 25 16:26:02 2009 +0100 @@ -101,6 +101,7 @@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLI tar xzf $< patch -d $@ -p0 < newlib.patch patch -d $@ -p0 < newlib-chk.patch + patch -d $@ -p1 < newlib-stdint-size_max-fix-from-1.17.0.patch touch $@ NEWLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libc.a diff -r 8faef78ea759 -r 49bfec374baf stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch Tue Aug 25 16:26:02 2009 +0100 @@ -0,0 +1,16 @@ +--- newlib-1.16.0/newlib/libc/include/stdint.h.orig 2006-08-17 00:39:43.000000000 +0300 ++++ newlib-1.16.0/newlib/libc/include/stdint.h 2009-08-25 17:33:23.000000000 +0300 +@@ -348,8 +348,11 @@ + #endif + + /* This must match size_t in stddef.h, currently long unsigned int */ +-#define SIZE_MIN (-__STDINT_EXP(LONG_MAX) - 1L) +-#define SIZE_MAX __STDINT_EXP(LONG_MAX) ++#ifdef __SIZE_MAX__ ++#define SIZE_MAX __SIZE_MAX__ ++#else ++#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1) ++#endif + + /* This must match sig_atomic_t in <signal.h> (currently int) */ + #define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |