cc-tool: fix missing stdarg.h include on uClibc
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 3 May 2015 13:08:59 +0000 (15:08 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 3 May 2015 14:33:46 +0000 (16:33 +0200)
This commit adds a patch to fix a missing <stdarg.h> include for
va_list.

Fixes:

  http://autobuild.buildroot.org/results/9c8/9c828b1da8983577f93bdfae5275fc5122ae874f/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/cc-tool/0001-add-missing-stdarg-include.patch [new file with mode: 0644]

diff --git a/package/cc-tool/0001-add-missing-stdarg-include.patch b/package/cc-tool/0001-add-missing-stdarg-include.patch
new file mode 100644 (file)
index 0000000..c4f47fd
--- /dev/null
@@ -0,0 +1,18 @@
+Add missing <stdarg.h> include for va_list
+
+Fixes the build on uClibc.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/src/common/log.h
+===================================================================
+--- a/src/common/log.h
++++ b/src/common/log.h
+@@ -13,6 +13,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdarg.h>
+ #include "common.h"
+ class Log