kmod: bump to version 24
[buildroot-gz.git] / package / wiringpi / 0002-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch
blob6480e3c444794db124eb61dd83dbb4fcc72edd1d
1 From 7f65eb37a82a6d9b095d9c8f262ad9dd205acd03 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 30 Jan 2016 16:57:38 -0800
4 Subject: [PATCH] include <asm/ioctl.h> directly for _IOC_SIZEBITS
6 Fixes errors like
7 | wiringPiSPI.c: In function 'wiringPiSPIDataRW':
8 | wiringPiSPI.c:89:35: error: '_IOC_SIZEBITS' undeclared (first use in
9 this function)
11 Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 [Patch from https://raw.githubusercontent.com/agherzan/meta-raspberrypi/master/recipes-devtools/wiringPi/wiringpi/0001-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch]
13 Signed-off-by: Peter Seiderere <ps.report@gmx.net>
14 ---
15 Upstream-Status: Submitted
17 wiringPi/wiringPi.c | 1 +
18 wiringPi/wiringPiI2C.c | 1 +
19 wiringPi/wiringPiSPI.c | 1 +
20 3 files changed, 3 insertions(+)
22 diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c
23 index 32e5100..cb5db9d 100644
24 --- a/wiringPi/wiringPi.c
25 +++ b/wiringPi/wiringPi.c
26 @@ -64,6 +64,7 @@
27 #include <time.h>
28 #include <fcntl.h>
29 #include <pthread.h>
30 +#include <asm/ioctl.h>
31 #include <sys/time.h>
32 #include <sys/mman.h>
33 #include <sys/stat.h>
34 diff --git a/wiringPi/wiringPiI2C.c b/wiringPi/wiringPiI2C.c
35 index c787bce..efdf53c 100644
36 --- a/wiringPi/wiringPiI2C.c
37 +++ b/wiringPi/wiringPiI2C.c
38 @@ -52,6 +52,7 @@
39 #include <string.h>
40 #include <fcntl.h>
41 #include <sys/ioctl.h>
42 +#include <asm/ioctl.h>
44 #include "wiringPi.h"
45 #include "wiringPiI2C.h"
46 diff --git a/wiringPi/wiringPiSPI.c b/wiringPi/wiringPiSPI.c
47 index 453df31..ae3c7d9 100644
48 --- a/wiringPi/wiringPiSPI.c
49 +++ b/wiringPi/wiringPiSPI.c
50 @@ -27,6 +27,7 @@
51 #include <fcntl.h>
52 #include <errno.h>
53 #include <string.h>
54 +#include <asm/ioctl.h>
55 #include <sys/ioctl.h>
56 #include <linux/spi/spidev.h>
58 --
59 2.7.0