mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00

Newlib provides a fast, C library optimized for embedded systems. In the case of Xen stubdomains, we are using MiniOS. This Newlib recipe creates static libraries that are cross-compiled against MiniOS, Xen, and LWIP headers and subsequently used during the cross-compilation and linking of PolarSSL, the stubdom specific GMP, TPM Emulator, and the Xen vTPM and vTPM Manager stubdomains. The current Xen source code is hardcoded to fetch a specific version of this package. The patch files originate from the Xen/stubdom source tree. This recipe provides the flexibility to change version or modify the patches. Signed-off-by: Kurt Bodiker <kurt.bodiker@braintrust-us.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
17 lines
580 B
Diff
17 lines
580 B
Diff
--- a/newlib/libc/include/stdint.h.orig 2006-08-17 00:39:43.000000000 +0300
|
|
+++ b/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)
|