summaryrefslogtreecommitdiffstats
path: root/package/openpowerlink/0007-apps-include-stdarg.h-in-eventlogstring.h.patch
blob: 70e44c2f61087b18bfdad7d1df98b32c0c88c49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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

OpenPOWER on IntegriCloud