diff options
| author | Rahul Bedarkar <rahulbedarkar89@gmail.com> | 2017-08-02 23:35:39 +0530 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-08-02 21:46:54 +0200 |
| commit | 3edad4614b6f502b39e893c2e0487829215e3642 (patch) | |
| tree | cf3b5eb6cfb5da7e980d53f907ee8d08cdcdb245 /package/let-me-create | |
| parent | f82bd2c9dfa426204108b211785ba9faf1645c9c (diff) | |
| download | buildroot-3edad4614b6f502b39e893c2e0487829215e3642.tar.gz buildroot-3edad4614b6f502b39e893c2e0487829215e3642.zip | |
let-me-create: fix build with musl
Add a patch to fix build with musl C library.
Fixes:
http://autobuild.buildroot.net/results/af946fa6fe05ee265e4ac97742b15afeb0cea1ab
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/let-me-create')
| -rw-r--r-- | package/let-me-create/0001-fix-build-with-musl-C-library.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/package/let-me-create/0001-fix-build-with-musl-C-library.patch b/package/let-me-create/0001-fix-build-with-musl-C-library.patch new file mode 100644 index 0000000000..90a7246405 --- /dev/null +++ b/package/let-me-create/0001-fix-build-with-musl-C-library.patch @@ -0,0 +1,38 @@ +From 93fbc53a727a49dd5061e44e3156ff2044e6e0b5 Mon Sep 17 00:00:00 2001 +From: Rahul Bedarkar <rahulbedarkar89@gmail.com> +Date: Tue, 1 Aug 2017 22:44:22 +0530 +Subject: [PATCH] fix build with musl C library + +With musl C library, we get following build error: + +/home/buildroot/autobuild/run/instance-3/output/build/let-me-create-v1.5.2/src/core/spi.c: In function 'spi_transfer': +/home/buildroot/autobuild/run/instance-3/output/build/let-me-create-v1.5.2/src/core/spi.c:170:19: error: '_IOC_SIZEBITS' undeclared (first use in this function) +if (ioctl(fd, SPI_IOC_MESSAGE(1), &tr) < 0) { +^ +/home/buildroot/autobuild/run/instance-3/output/build/let-me-create-v1.5.2/src/core/spi.c:170:19: note: each undeclared identifier is reported only once for each function it appears in + +Include <linux/ioctl.h> for musl C library compatibility. + +This build issue is detected by Buildroot autobuilder: +http://autobuild.buildroot.net/results/af9/af946fa6fe05ee265e4ac97742b15afeb0cea1ab/ + +Signed-off-by: Rahul Bedarkar rahulbedarkar89@gmail.com +--- +Upstream status: https://github.com/CreatorDev/LetMeCreate/pull/29 + + src/core/spi.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/core/spi.c b/src/core/spi.c +index 4d55cee..9ec7ea9 100644 +--- a/src/core/spi.c ++++ b/src/core/spi.c +@@ -1,4 +1,5 @@ + #include <sys/ioctl.h> ++#include <linux/ioctl.h> + #include <linux/spi/spidev.h> + #include <fcntl.h> + #include <errno.h> +-- +2.7.4 + |

