python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / flashrom / 0001-spi.patch
blob22ffcb54dc904503e0baca16faf50000a6cebbde
1 linux_spi: add missing include
3 Some defines (e.g. _IOC_SIZEBITS) are defined in linux/ioctl.h,
4 so it must be included before it is used, by SPI_IOC_MESSAGE
5 from linux/spi/spidev.h
7 Fixes build errors with the musl C library, as seen in these
8 Buildroot autobuilder failures:
10 http://autobuild.buildroot.org/results/2a3/2a3744007c630c267575a638ebcd83a4b97644f5/build-end.log
11 http://autobuild.buildroot.org/results/3de/3de936d9be79e151e66af15193084d82a0f2c04a/build-end.log
13 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
15 diff -durN flashrom-0.9.8.orig/linux_spi.c flashrom-0.9.8/linux_spi.c
16 --- flashrom-0.9.8.orig/linux_spi.c 2015-10-28 19:42:38.480285847 +0100
17 +++ flashrom-0.9.8/linux_spi.c 2015-10-28 19:43:15.492994613 +0100
18 @@ -27,6 +27,7 @@
19 #include <ctype.h>
20 #include <unistd.h>
21 #include <linux/types.h>
22 +#include <linux/ioctl.h>
23 #include <linux/spi/spidev.h>
24 #include <sys/ioctl.h>
25 #include "flash.h"