Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From b5ca64c7398d516e9845d849e8306df7ac024bc4 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 11 Apr 2017 13:59:34 -0700 |
| 4 | Subject: [PATCH] include asm/ioctl.h explicitly |
| 5 | |
| 6 | Needed for _IOC* defines |
| 7 | |
| 8 | helps compiling with musl where this file is |
| 9 | not included indirectly |
| 10 | |
| 11 | Signed-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 | |
| 17 | diff --git a/server/drivers/hd44780-pifacecad.c b/server/drivers/hd44780-pifacecad.c |
| 18 | index 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 | |
| 29 | diff --git a/server/drivers/hd44780-spi.c b/server/drivers/hd44780-spi.c |
| 30 | index 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 | -- |
| 42 | 2.12.2 |
| 43 | |