blob: abdedad5d6fbf34f6445e47f8b4be400fa0b50bd [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From b5ca64c7398d516e9845d849e8306df7ac024bc4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 11 Apr 2017 13:59:34 -0700
4Subject: [PATCH] include asm/ioctl.h explicitly
5
6Needed for _IOC* defines
7
8helps compiling with musl where this file is
9not included indirectly
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 server/drivers/hd44780-pifacecad.c | 1 +
14 server/drivers/hd44780-spi.c | 1 +
15 2 files changed, 2 insertions(+)
16
17diff --git a/server/drivers/hd44780-pifacecad.c b/server/drivers/hd44780-pifacecad.c
18index 43db19c..e2798ad 100644
19--- a/server/drivers/hd44780-pifacecad.c
20+++ b/server/drivers/hd44780-pifacecad.c
21@@ -54,6 +54,7 @@
22 #include <unistd.h>
23 #include <fcntl.h>
24 #include <sys/ioctl.h>
25+#include <asm/ioctl.h>
26 #include <stdint.h>
27 #include <linux/spi/spidev.h>
28
29diff --git a/server/drivers/hd44780-spi.c b/server/drivers/hd44780-spi.c
30index 5f94333..8a4015b 100644
31--- a/server/drivers/hd44780-spi.c
32+++ b/server/drivers/hd44780-spi.c
33@@ -29,6 +29,7 @@
34 #include <unistd.h>
35 #include <fcntl.h>
36 #include <sys/ioctl.h>
37+#include <asm/ioctl.h>
38 #include <stdint.h>
39 #include <linux/spi/spidev.h>
40
41--
422.12.2
43