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
7 | wiringPiSPI.c: In function 'wiringPiSPIDataRW':
8 | wiringPiSPI.c:89:35: error: '_IOC_SIZEBITS' undeclared (first use in
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>
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
30 +#include <asm/ioctl.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
41 #include <sys/ioctl.h>
42 +#include <asm/ioctl.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
54 +#include <asm/ioctl.h>
55 #include <sys/ioctl.h>
56 #include <linux/spi/spidev.h>