blob: 64b5b044dd925d9b7981d4e44b7260563e49ace6 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From 0fd5dda51d68e1ec2a87e27b5ed0dff3503b4681 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 31 Dec 2015 08:12:38 +0000
4Subject: [PATCH] kbdtools: Include sys/types.h for u_char and u_short
5 definition
6
7on musl this gets exposed since sys/types.h is not
8included via some other indirect inclusion as is the case with glibc
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12Upstream-Status: Pending
13
14 kbdtools/dumpkeys.c | 1 +
15 kbdtools/loadkeys.y | 1 +
16 2 files changed, 2 insertions(+)
17
18diff --git a/kbdtools/dumpkeys.c b/kbdtools/dumpkeys.c
19index 6159d49..c19fb21 100644
20--- a/kbdtools/dumpkeys.c
21+++ b/kbdtools/dumpkeys.c
22@@ -26,6 +26,7 @@
23 #include <errno.h>
24 #include <sysexits.h>
25 #include <sys/ioctl.h>
26+#include <sys/types.h>
27 #include <linux/types.h>
28 #include <linux/kd.h>
29 #include <linux/keyboard.h>
30diff --git a/kbdtools/loadkeys.y b/kbdtools/loadkeys.y
31index b6a8e01..4468f77 100644
32--- a/kbdtools/loadkeys.y
33+++ b/kbdtools/loadkeys.y
34@@ -71,6 +71,7 @@
35 #include <linux/kd.h>
36 #include <linux/keyboard.h>
37 #include <sys/ioctl.h>
38+#include <sys/types.h>
39 #include <ctype.h>
40 #include <sysexits.h>
41 #include <signal.h>
42--
432.6.4
44