From 1d8cb0ad54099c3d7261aaa19a2c0786f16736d0 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 8 Aug 2015 22:42:39 +0200 Subject: [PATCH] Add missing header for musl compatibility is needed to get the definition of _IOC_SIZEBITS and solve the following build failure: src/spi.c: In function 'spi_transfer': src/spi.c:100:24: error: '_IOC_SIZEBITS' undeclared (first use in this function) if (ioctl(spi->fd, SPI_IOC_MESSAGE(1), &spi_xfer) < 1) Signed-off-by: Thomas Petazzoni --- src/spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spi.c b/src/spi.c index 52a8d3d..1a6b17c 100644 --- a/src/spi.c +++ b/src/spi.c @@ -16,6 +16,7 @@ #include #include +#include #include #include "spi.h" -- 2.5.0