summaryrefslogtreecommitdiff
path: root/include/vsprintf.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-07-05 10:26:36 +0200
committerTom Rini <trini@konsulko.com>2016-08-20 11:34:59 -0400
commitf272f1fcd9db5364a66652d2624b5672e2d398bd (patch)
tree1cd87c73277ab40cec6e1e6661505bd3e5047164 /include/vsprintf.h
parent716f90852650406d616be69c01a4f10b49742006 (diff)
vsprintf: Include stdarg for va_list
vsprintf.h doesn't include the stdarg.h file, which means that it relies on the files that include vsprintf.h to include stdarg.h as well. Add an explicit include to avoid build errors when simply including that file. Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'include/vsprintf.h')
-rw-r--r--include/vsprintf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vsprintf.h b/include/vsprintf.h
index 376f5dd324..60e91d119e 100644
--- a/include/vsprintf.h
+++ b/include/vsprintf.h
@@ -8,6 +8,8 @@
#ifndef __VSPRINTF_H
#define __VSPRINTF_H
+#include <stdarg.h>
+
ulong simple_strtoul(const char *cp, char **endp, unsigned int base);
/**