summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2016-06-08 23:21:59 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-06-08 23:24:39 +0200
commitebb6878fffd0ce85814c0781a4167dee069a11a6 (patch)
tree28df50f17787570c46e8b6ad1c39fe10f3c8a901
parent8bc03db7be232b6bc79a5c68d64e11a9fdfb2c52 (diff)
package/openpowerlink: fix uClibc build
In the demo application code, va_list type is used in eventlogstring.h so stdarg.h must be included to define it. This problem occurs with a uClibc-ng based toolchain. Fixes: http://autobuild.buildroot.net/results/a9e/a9e7615a19922706039bf97ccb94bcf5b99330b2 Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch b/package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch
new file mode 100644
index 000000000..70e44c2f6
--- /dev/null
+++ b/package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch
@@ -0,0 +1,61 @@
+From 533f40e097b8d08e1dfeb03e2484a4369fad778f Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@gmail.com>
+Date: Wed, 8 Jun 2016 13:13:36 +0200
+Subject: [PATCH] [FIX] apps: include stdarg.h in eventlogstring.h
+
+va_list type is used in eventlogstring.h so it must include stdarg.h to define
+it.
+
+Upstream status: Pending
+https://github.com/OpenAutomationTechnologies/openPOWERLINK_V2/pull/127
+
+Fixes:
+http://autobuild.buildroot.net/results/a9e/a9e7615a19922706039bf97ccb94bcf5b99330b2/build-end.log
+
+Signed-off-by: Romain Naour <romain.naour@gmail.com>
+---
+ apps/common/src/eventlog/eventlog.c | 1 -
+ apps/common/src/eventlog/eventlogstring.c | 1 -
+ apps/common/src/eventlog/eventlogstring.h | 2 ++
+ 3 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/apps/common/src/eventlog/eventlog.c b/apps/common/src/eventlog/eventlog.c
+index f2193e2..eba1101 100644
+--- a/apps/common/src/eventlog/eventlog.c
++++ b/apps/common/src/eventlog/eventlog.c
+@@ -47,7 +47,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ //------------------------------------------------------------------------------
+
+ #include <stdio.h>
+-#include <stdarg.h>
+ #include <time.h>
+
+ #include <oplk/debugstr.h>
+diff --git a/apps/common/src/eventlog/eventlogstring.c b/apps/common/src/eventlog/eventlogstring.c
+index 9fb677b..a55a1a4 100644
+--- a/apps/common/src/eventlog/eventlogstring.c
++++ b/apps/common/src/eventlog/eventlogstring.c
+@@ -47,7 +47,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ #include "eventlogstring.h"
+
+ #include <stdio.h>
+-#include <stdarg.h>
+ #include <time.h>
+
+ #include <oplk/debugstr.h>
+diff --git a/apps/common/src/eventlog/eventlogstring.h b/apps/common/src/eventlog/eventlogstring.h
+index 2c291a6..3a5f2fa 100644
+--- a/apps/common/src/eventlog/eventlogstring.h
++++ b/apps/common/src/eventlog/eventlogstring.h
+@@ -41,6 +41,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ //------------------------------------------------------------------------------
+ // includes
+ //------------------------------------------------------------------------------
++#include <stdarg.h>
++
+ #include <oplk/oplk.h>
+ #include <oplk/nmt.h>
+
+--
+2.5.5
+