[U-Boot,RFC,25/44] Add stdarg to vsprintf.h

Message ID 1357350734-13737-26-git-send-email-sjg@chromium.org
State Accepted, archived
Commit f272f1fcd9db5364a66652d2624b5672e2d398bd
Headers show

Commit Message

Simon Glass Jan. 5, 2013, 1:51 a.m.
This file uses varargs, so add the header file so that it can be used when
common has not been included.

TODO: Probably should drop this patch?

Signed-off-by: Simon Glass <sjg@chromium.org>
 include/vsprintf.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/include/vsprintf.h b/include/vsprintf.h
index 651077c..704b8cd 100644
--- a/include/vsprintf.h
+++ b/include/vsprintf.h
@@ -24,6 +24,8 @@ 
 #ifndef __VSPRINTF_H
 #define __VSPRINTF_H
+#include <stdarg.h>
 ulong simple_strtoul(const char *cp, char **endp, unsigned int base);