summaryrefslogtreecommitdiffstats
path: root/package/liblogging
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2014-03-15 23:37:21 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-03-15 23:37:21 +0100
commit95d58377227d0986d59dbe2c25cb1b31d14e4b55 (patch)
tree3fccff03f892c487d6d9dadfeda0ef362345edf9 /package/liblogging
parent3bb6a3667b1b3a04a5e91073071d5cf60a01d63f (diff)
downloadbuildroot-95d58377227d0986d59dbe2c25cb1b31d14e4b55.tar.gz
buildroot-95d58377227d0986d59dbe2c25cb1b31d14e4b55.zip
liblogging: 'va_list' needs stdarg.h (atleast on uClibc)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/liblogging')
-rw-r--r--package/liblogging/liblogging-01-stdarg.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/liblogging/liblogging-01-stdarg.patch b/package/liblogging/liblogging-01-stdarg.patch
new file mode 100644
index 0000000000..081824aeb4
--- /dev/null
+++ b/package/liblogging/liblogging-01-stdarg.patch
@@ -0,0 +1,29 @@
+[PATCH] stdlog: va_list needs stdarg.h
+
+Otherwise we get compilation errors like:
+
+In file included from stdlogctl.c:32:0:
+stdlog.h:80:75: error: unknown type name 'va_list'
+In file included from stdlogctl.c:32:0:
+stdlog.h:81:131: error: unknown type name 'va_list'
+
+Simplified version of upstream fix:
+https://github.com/rsyslog/liblogging/commit/3bf42ae392c1a317f09711846ea1c7072ef45634
+
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ stdlog/stdlog.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: liblogging-1.0.2/stdlog/stdlog.h
+===================================================================
+--- liblogging-1.0.2.orig/stdlog/stdlog.h
++++ liblogging-1.0.2/stdlog/stdlog.h
+@@ -28,6 +28,7 @@
+ #ifndef LIBLOGGING_STDLOG_H_INCLUDED
+ #define LIBLOGGING_STDLOG_H_INCLUDED
+ #include <stdint.h>
++#include <stdarg.h>
+
+ /* options for stdlog_open() call */
+ #define STDLOG_SIGSAFE 1 /* enforce signal-safe implementation */
OpenPOWER on IntegriCloud