[kbd] [PATCH] libkeymap: include stdarg.h where used

Mike Frysinger vapier at gentoo.org
Mon Jan 6 19:27:56 MSK 2014


Some of these headers use va_list but don't include stdarg.h for it.

Reported-by: Anthony Basile <blueness at gentoo.org>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 src/libkeymap/contextP.h      | 2 ++
 src/libkeymap/keymap/common.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/libkeymap/contextP.h b/src/libkeymap/contextP.h
index e3798e3..8ee3fab 100644
--- a/src/libkeymap/contextP.h
+++ b/src/libkeymap/contextP.h
@@ -1,6 +1,8 @@
 #ifndef LK_CONTEXTP_H
 #define LK_CONTEXTP_H
 
+#include <stdarg.h>
+
 #include "keymap.h"
 
 /**
diff --git a/src/libkeymap/keymap/common.h b/src/libkeymap/keymap/common.h
index 6b9cead..987b564 100644
--- a/src/libkeymap/keymap/common.h
+++ b/src/libkeymap/keymap/common.h
@@ -6,6 +6,8 @@
 #ifndef LK_COMMON_H
 #define LK_COMMON_H
 
+#include <stdarg.h>
+
 #include <keymap/context.h>
 
 /** Initializes the structures necessary to read and/or parse keymap.
-- 
1.8.4.3



More information about the kbd mailing list