From 7f65eb37a82a6d9b095d9c8f262ad9dd205acd03 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 30 Jan 2016 16:57:38 -0800 Subject: [PATCH] include directly for _IOC_SIZEBITS Fixes errors like | wiringPiSPI.c: In function 'wiringPiSPIDataRW': | wiringPiSPI.c:89:35: error: '_IOC_SIZEBITS' undeclared (first use in this function) Signed-off-by: Khem Raj [Patch from https://raw.githubusercontent.com/agherzan/meta-raspberrypi/master/recipes-devtools/wiringPi/wiringpi/0001-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch] Signed-off-by: Peter Seiderere --- Upstream-Status: Submitted wiringPi/wiringPi.c | 1 + wiringPi/wiringPiI2C.c | 1 + wiringPi/wiringPiSPI.c | 1 + 3 files changed, 3 insertions(+) diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index 32e5100..cb5db9d 100644 --- a/wiringPi/wiringPi.c +++ b/wiringPi/wiringPi.c @@ -64,6 +64,7 @@ #include #include #include +#include #include #include #include diff --git a/wiringPi/wiringPiI2C.c b/wiringPi/wiringPiI2C.c index c787bce..efdf53c 100644 --- a/wiringPi/wiringPiI2C.c +++ b/wiringPi/wiringPiI2C.c @@ -52,6 +52,7 @@ #include #include #include +#include #include "wiringPi.h" #include "wiringPiI2C.h" diff --git a/wiringPi/wiringPiSPI.c b/wiringPi/wiringPiSPI.c index 453df31..ae3c7d9 100644 --- a/wiringPi/wiringPiSPI.c +++ b/wiringPi/wiringPiSPI.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include -- 2.7.0