Patchwork [U-Boot,v2,25/45] Add stdarg to vsprintf.h

login
register
mail settings
Submitter Simon Glass
Date March 18, 2013, 11:51 p.m.
Message ID <1363650725-30459-26-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/228860/
State Deferred
Delegated to: Tom Rini
Headers show

Comments

Simon Glass - March 18, 2013, 11:51 p.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>
---
Changes in v2: None

 include/vsprintf.h | 2 ++
 1 file changed, 2 insertions(+)

Patch

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);
 
 /**