From d146e00f7d67bd8ddb8baf0771dd63ca997fa164 Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Thu, 9 Jun 2016 21:05:25 +0200 Subject: [PATCH] wiringpi: fix musl compile Fixes [1]: wiringPiSPI.c:89:35: error: '_IOC_SIZEBITS' undeclared (first use in this function) Patch from yocto meta-raspberrypi [2] adding include of asm/ioctl.h. [1] http://autobuild.buildroot.net/results/e9d/e9d680af7eea6d6c68c8e48248b5cc5b29389baa [2] https://github.com/agherzan/meta-raspberrypi/blob/master/recipes-devtools/wiringPi/wiringpi/0001-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch Signed-off-by: Peter Seiderer Signed-off-by: Thomas Petazzoni --- ...m-ioctl.h-directly-for-_IOC_SIZEBITS.patch | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 package/wiringpi/0002-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch diff --git a/package/wiringpi/0002-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch b/package/wiringpi/0002-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch new file mode 100644 index 0000000000..6480e3c444 --- /dev/null +++ b/package/wiringpi/0002-include-asm-ioctl.h-directly-for-_IOC_SIZEBITS.patch @@ -0,0 +1,60 @@ +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 + -- 2.30.2