From ef22791b814f311d0e0230b63ad2e994640df9db Mon Sep 17 00:00:00 2001 From: jkim Date: Fri, 9 Jul 2010 05:25:14 +0000 Subject: [PATCH] Fix build by defining MAX() macro here. --- lib/libstand/printf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libstand/printf.c b/lib/libstand/printf.c index f6c94e358f08..97cf8f7eaa56 100644 --- a/lib/libstand/printf.c +++ b/lib/libstand/printf.c @@ -151,6 +151,7 @@ ksprintn(char *nbuf, uintmax_t num, int base, int *lenp, int upper) static int kvprintf(char const *fmt, void (*func)(int), void *arg, int radix, va_list ap) { +#define MAX(a, b) (((a) > (b)) ? (a) : (b)) #define PCHAR(c) {int cc=(c); if (func) (*func)(cc); else *d++ = cc; retval++; } char nbuf[MAXNBUF]; char *d;