summaryrefslogtreecommitdiffstats
path: root/package/mcelog/0001-memutil.h-add-missing-include-for-va_list.patch
blob: f9e08be18def86a32b90d3d39f3e21268ca9c8d1 (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
From 36aad32283eae5b47a05e3adfa3f5f6a7b1b55c0 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd.kuhls@t-online.de>
Date: Sun, 11 Jun 2017 10:02:39 +0200
Subject: [PATCH] memutil.h: add missing include for va_list

Fixes compile error with uclibc-ng:

In file included from mcelog.c:51:0:
memutil.h:4:48: error: unknown type name 'va_list'
 int xvasprintf(char **ret, const char *format, va_list ap);

Patch sent upstream: https://github.com/andikleen/mcelog/pull/54

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 memutil.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/memutil.h b/memutil.h
index 81028e9..dbed7fa 100644
--- a/memutil.h
+++ b/memutil.h
@@ -1,4 +1,5 @@
 #include <stdlib.h>
+#include <stdarg.h>
 
 int xasprintf(char **strp, const char *fmt, ...);
 int xvasprintf(char **ret, const char *format, va_list ap);
-- 
2.11.0

OpenPOWER on IntegriCloud