Patrick Georgi (patrick@georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/104
-gerrit
commit 40fcefcdcfa74405fc3c6fba571557520d4c3096 Author: Patrick Georgi patrick.georgi@secunet.com Date: Tue Jul 12 15:02:04 2011 +0200
libpayload: Improve compatibility
Define INT_MAX, EOF and make sure size_t is available.
Change-Id: I1b4b717d2545ea8312ec52339300307a5bd68f8a Signed-off-by: Patrick Georgi patrick.georgi@secunet.com --- payloads/libpayload/include/limits.h | 1 + payloads/libpayload/include/stdarg.h | 1 + payloads/libpayload/include/stdio.h | 2 ++ 3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/payloads/libpayload/include/limits.h b/payloads/libpayload/include/limits.h index be7dde0..2fecf23 100644 --- a/payloads/libpayload/include/limits.h +++ b/payloads/libpayload/include/limits.h @@ -41,5 +41,6 @@ #endif
#define UINT_MAX (unsigned int)0xffffffff +#define INT_MAX (unsigned int)0x7fffffff
#endif diff --git a/payloads/libpayload/include/stdarg.h b/payloads/libpayload/include/stdarg.h index 7a6244e..077645f 100644 --- a/payloads/libpayload/include/stdarg.h +++ b/payloads/libpayload/include/stdarg.h @@ -30,6 +30,7 @@ #ifndef _LIBPAYLOAD_STDARG_H #define _LIBPAYLOAD_STDARG_H
+#include <stddef.h> #include_next <stdarg.h>
/** diff --git a/payloads/libpayload/include/stdio.h b/payloads/libpayload/include/stdio.h index d39e9f8..924d17e 100644 --- a/payloads/libpayload/include/stdio.h +++ b/payloads/libpayload/include/stdio.h @@ -32,6 +32,8 @@
#include <stddef.h>
+#define EOF (-1) + typedef struct _FILE FILE;
extern FILE *stdout, *stdin, *stderr;