Pasi Kärkkäinen
2009-Aug-25 14:57 UTC
[Xen-devel] [PATCH] xen-unstable: fix stubdom newlib SIZE_MAX definition in stdint.h
Hello, While working on adding bzip2/lzma decompression support into stubdom/pvgrub I noticed a problem in newlib 1.16.0 (current version in xen-unstable) libc/include/stdint.h. It defines SIZE_MAX like this: #define SIZE_MAX __STDINT_EXP(LONG_MAX) Which is an incorrect signed value. This problem is fixed in upstream newlib 1.17.0. The correct definition is this: #ifdef __SIZE_MAX__ #define SIZE_MAX __SIZE_MAX__ #else #define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1) #endif The attached patches fix this problem. These are needed for being able to build lzma (xz) libs for stubdom/pvgrub. -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel