diff options
author | Jörg Krause <joerg.krause@embedded.rocks> | 2015-09-15 00:40:35 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-09-19 14:01:58 +0200 |
commit | 08647c6328223b1070c64fe618d09a1a87b30ce3 (patch) | |
tree | ced62edbe9c698f8103683d34fb9258210846ce9 /package/lua-periphery/0001-Add-missing-header-for-musl-compatibility.patch | |
parent | 4685485ef7651786da87f0e09a7d787aae68c1fe (diff) | |
download | buildroot-08647c6328223b1070c64fe618d09a1a87b30ce3.tar.gz buildroot-08647c6328223b1070c64fe618d09a1a87b30ce3.zip |
package/lua-periphery: bump to version 1.0.6
Also remove patch 0001-fix-build-flags.patch. The uCLibc issue is fixed
upstream.
Add patch taken and slighly adopted from the c-periphery package to fix build
issue with musl.
Build was tested with an uCLibc toolchain and a musl toolchain.
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lua-periphery/0001-Add-missing-header-for-musl-compatibility.patch')
-rw-r--r-- | package/lua-periphery/0001-Add-missing-header-for-musl-compatibility.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/package/lua-periphery/0001-Add-missing-header-for-musl-compatibility.patch b/package/lua-periphery/0001-Add-missing-header-for-musl-compatibility.patch new file mode 100644 index 0000000000..22c748ccb3 --- /dev/null +++ b/package/lua-periphery/0001-Add-missing-header-for-musl-compatibility.patch @@ -0,0 +1,34 @@ +From 1d8cb0ad54099c3d7261aaa19a2c0786f16736d0 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Sat, 8 Aug 2015 22:42:39 +0200 +Subject: [PATCH] Add missing header for musl compatibility + +<linux/ioctl.h> 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 <thomas.petazzoni@free-electrons.com> +[Port from c-periphery] +Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> +--- + src/spi.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lua-periphery/c-periphery/src/spi.c b/lua-periphery/c-periphery/src/spi.c +index 52a8d3d..1a6b17c 100644 +--- a/lua-periphery/c-periphery/src/spi.c ++++ b/lua-periphery/c-periphery/src/spi.c +@@ -16,6 +16,7 @@ + #include <errno.h> + + #include <sys/ioctl.h> ++#include <linux/ioctl.h> + #include <linux/spi/spidev.h> + + #include "spi.h" +-- +2.5.0 + |