libglib2: bump to version 2.48.2
[buildroot-gz.git] / package / python-spidev / 0001-Fix-build-with-musl-libc.patch
blobb22a73aa676f1524a2129b572eb89b82e29bc55d
1 From 3d6e59bff088783f249a60a5f1c900c7f99f933b Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Sun, 31 Jan 2016 15:03:50 +0100
4 Subject: [PATCH 1/1] Fix build with musl libc
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Include missing header to prevent build error:
11 spidev_module.c: In function ‘SpiDev_xfer’:
12 spidev_module.c:330:27: error: ‘_IOC_SIZEBITS’ undeclared (first use in this function)
13 status = ioctl(self->fd, SPI_IOC_MESSAGE(1), &xfer);
15 spidev_module.c:330:27: note: each undeclared identifier is reported only once for each function it appears in
16 spidev_module.c: In function ‘SpiDev_xfer2’:
17 spidev_module.c:421:27: error: ‘_IOC_SIZEBITS’ undeclared (first use in this function)
18 status = ioctl(self->fd, SPI_IOC_MESSAGE(1), &xfer);
21 Signed-off-by: Bernd Kuhls bernd.kuhls@t-online.de
22 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
23 ---
24 Patch sent upstream: https://github.com/doceme/py-spidev/pull/39
26 spidev_module.c | 1 +
27 1 file changed, 1 insertion(+)
29 diff --git a/spidev_module.c b/spidev_module.c
30 index d58ef07..bccaacf 100644
31 --- a/spidev_module.c
32 +++ b/spidev_module.c
33 @@ -25,6 +25,7 @@
34 #include <linux/spi/spidev.h>
35 #include <linux/types.h>
36 #include <sys/ioctl.h>
37 +#include <linux/ioctl.h>
39 #define SPIDEV_MAXPATH 4096
41 --
42 2.7.0