[PATCH 11/36] vsprintf: Only define PAGE_SIZE if not already defined

Sascha Hauer s.hauer at pengutronix.de
Fri Dec 18 10:48:00 EST 2009


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 lib/vsprintf.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index b04694f..6008305 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -206,7 +206,9 @@ static char *number(char *buf, char *end, unsigned long long num, int base, int
 	return buf;
 }
 
+#ifndef PAGE_SIZE
 #define PAGE_SIZE 4096
+#endif
 
 static char *string(char *buf, char *end, char *s, int field_width, int precision, int flags)
 {
-- 
1.6.5.2




More information about the barebox mailing list