console-tools: Include sys/types.h for u_char and u_short defs

(From OE-Core rev: 916ca791c70ec2bddae7623e77b7e39b6c591907)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2016-01-02 21:51:37 +00:00 committed by Richard Purdie
parent 205a07af84
commit da8163504d
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,44 @@
From 0fd5dda51d68e1ec2a87e27b5ed0dff3503b4681 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 31 Dec 2015 08:12:38 +0000
Subject: [PATCH] kbdtools: Include sys/types.h for u_char and u_short
definition
on musl this gets exposed since sys/types.h is not
included via some other indirect inclusion as is the case with glibc
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending
kbdtools/dumpkeys.c | 1 +
kbdtools/loadkeys.y | 1 +
2 files changed, 2 insertions(+)
diff --git a/kbdtools/dumpkeys.c b/kbdtools/dumpkeys.c
index 6159d49..c19fb21 100644
--- a/kbdtools/dumpkeys.c
+++ b/kbdtools/dumpkeys.c
@@ -26,6 +26,7 @@
#include <errno.h>
#include <sysexits.h>
#include <sys/ioctl.h>
+#include <sys/types.h>
#include <linux/types.h>
#include <linux/kd.h>
#include <linux/keyboard.h>
diff --git a/kbdtools/loadkeys.y b/kbdtools/loadkeys.y
index b6a8e01..4468f77 100644
--- a/kbdtools/loadkeys.y
+++ b/kbdtools/loadkeys.y
@@ -71,6 +71,7 @@
#include <linux/kd.h>
#include <linux/keyboard.h>
#include <sys/ioctl.h>
+#include <sys/types.h>
#include <ctype.h>
#include <sysexits.h>
#include <signal.h>
--
2.6.4

View File

@ -14,6 +14,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/lct/console-tools-${PV}.tar.gz \
file://nodocs.patch \
file://fix-libconsole-linking.patch \
file://no-dep-on-libfl.patch \
file://0001-kbdtools-Include-sys-types.h-for-u_char-and-u_short-.patch \
file://lcmessage.m4 \
file://Makevars"