summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-12-18 12:25:51 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2009-12-18 16:44:58 +0100
commit9ff9388632df25324a48c1ba84c1ec56016e6622 (patch)
treec953f8ad738b9fd4be8b71219cf7b202371183ac
parent4c96c0e1a4a062f5a71a37e662879885bfb9bb20 (diff)
downloadbarebox-9ff9388632df25324a48c1ba84c1ec56016e6622.tar.gz
barebox-9ff9388632df25324a48c1ba84c1ec56016e6622.tar.xz
vsprintf: Only define PAGE_SIZE if not already defined
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--lib/vsprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index b04694f25f..6008305338 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)
{