summaryrefslogtreecommitdiffstats
path: root/package/mtd/0004-recv_image-do-not-include-error.h.patch
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2015-04-24 23:56:03 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-25 10:20:23 +0200
commitd9ae279e6a0232dc8af9856e229a57148bf222e9 (patch)
tree78725f8b7cf9a4afce80ecb67fd5ff72e1da0332 /package/mtd/0004-recv_image-do-not-include-error.h.patch
parentbfb5d066fc8a4a5f4be4e0f99dd75b62f32ec787 (diff)
downloadbuildroot-d9ae279e6a0232dc8af9856e229a57148bf222e9.tar.gz
buildroot-d9ae279e6a0232dc8af9856e229a57148bf222e9.zip
package/mtd: fix musl compile
Update rpmatch patch to commit 5923077649ca167991a24ca05bd285fdf6fa1a06 and expand to musl. Rename it. Add more patches to fix compile issues with musl. Patches sent upstream: 1) "include/common.h: fix build against musl" http://patchwork.ozlabs.org/patch/464074/ 2) "lib/libfec.c: fix build against musl" http://patchwork.ozlabs.org/patch/464073/ 3) "serve_image: do not include error.h" http://patchwork.ozlabs.org/patch/464416/ 4) "recv_image: do not include error.h" http://patchwork.ozlabs.org/patch/464417/ Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Reported-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/mtd/0004-recv_image-do-not-include-error.h.patch')
-rw-r--r--package/mtd/0004-recv_image-do-not-include-error.h.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/mtd/0004-recv_image-do-not-include-error.h.patch b/package/mtd/0004-recv_image-do-not-include-error.h.patch
new file mode 100644
index 0000000000..5c58dcee83
--- /dev/null
+++ b/package/mtd/0004-recv_image-do-not-include-error.h.patch
@@ -0,0 +1,30 @@
+From c5837be1cc2422fc16b1fe030548e5a3ab951a54 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
+Date: Fri, 24 Apr 2015 22:06:31 +0200
+Subject: [PATCH 4/4] recv_image: do not include error.h
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+recv_image does not use anything from it and it is not available with all
+C libraries.
+
+Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
+---
+ recv_image.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/recv_image.c b/recv_image.c
+index 26a8361..0093831 100644
+--- a/recv_image.c
++++ b/recv_image.c
+@@ -4,7 +4,6 @@
+ #define _BSD_SOURCE /* struct ip_mreq */
+
+ #include <errno.h>
+-#include <error.h>
+ #include <stdio.h>
+ #include <netdb.h>
+ #include <stdlib.h>
+--
+2.3.6
OpenPOWER on IntegriCloud