summaryrefslogtreecommitdiff
path: root/package/libsoc
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2015-11-27 16:31:21 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-11-27 19:29:38 +0100
commitedb154b94fe37d32ada3c8631e89c1333c72851f (patch)
tree31d2e4fb745d63ee4b75866e5a81429995bab780 /package/libsoc
parent7a0d47340c963985b026fc050a3b26be1d3c154b (diff)
libsoc: fix MUSL build issue
Without <linux/ioctl.h> include compiler cannot find _IOC_SIZEBITS macro, when using MUSL C library. Fixes: http://autobuild.buildroot.net/results/c86/c86fc75212df75906222772854c283396bb880d2/ Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libsoc')
-rw-r--r--package/libsoc/0001-spi-fix-build-against-MUSL-C-library.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/libsoc/0001-spi-fix-build-against-MUSL-C-library.patch b/package/libsoc/0001-spi-fix-build-against-MUSL-C-library.patch
new file mode 100644
index 000000000..7e8061bd6
--- /dev/null
+++ b/package/libsoc/0001-spi-fix-build-against-MUSL-C-library.patch
@@ -0,0 +1,28 @@
+From 647a3af126943b2251c82340ab7c81706b2eb805 Mon Sep 17 00:00:00 2001
+From: Yegor Yefremov <yegorslists@googlemail.com>
+Date: Fri, 27 Nov 2015 10:24:12 +0100
+Subject: [PATCH] spi: fix build against MUSL C library
+
+Without <linux/ioctl.h> include compiler cannot find _IOC_SIZEBITS
+macro, when using MUSL C library.
+
+Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
+---
+ lib/spi.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/spi.c b/lib/spi.c
+index 8465f75..6d1f78a 100644
+--- a/lib/spi.c
++++ b/lib/spi.c
+@@ -6,6 +6,7 @@
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <linux/types.h>
++#include <linux/ioctl.h>
+ #include <linux/spi/spidev.h>
+
+ #include "libsoc_spi.h"
+--
+2.1.4
+