package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / lua-periphery / 0001-Add-missing-header-for-musl-compatibility.patch
blob22c748ccb3c9d248477b9ae3eec554ca6a2d2e70
1 From 1d8cb0ad54099c3d7261aaa19a2c0786f16736d0 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sat, 8 Aug 2015 22:42:39 +0200
4 Subject: [PATCH] Add missing header for musl compatibility
6 <linux/ioctl.h> is needed to get the definition of _IOC_SIZEBITS and
7 solve the following build failure:
9 src/spi.c: In function 'spi_transfer':
10 src/spi.c:100:24: error: '_IOC_SIZEBITS' undeclared (first use in this function)
11 if (ioctl(spi->fd, SPI_IOC_MESSAGE(1), &spi_xfer) < 1)
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 [Port from c-periphery]
15 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
16 ---
17 src/spi.c | 1 +
18 1 file changed, 1 insertion(+)
20 diff --git a/lua-periphery/c-periphery/src/spi.c b/lua-periphery/c-periphery/src/spi.c
21 index 52a8d3d..1a6b17c 100644
22 --- a/lua-periphery/c-periphery/src/spi.c
23 +++ b/lua-periphery/c-periphery/src/spi.c
24 @@ -16,6 +16,7 @@
25 #include <errno.h>
27 #include <sys/ioctl.h>
28 +#include <linux/ioctl.h>
29 #include <linux/spi/spidev.h>
31 #include "spi.h"
32 --
33 2.5.0