diff options
author | Jörg Krause <joerg.krause@embedded.rocks> | 2015-04-24 23:56:03 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-04-25 10:20:23 +0200 |
commit | d9ae279e6a0232dc8af9856e229a57148bf222e9 (patch) | |
tree | 78725f8b7cf9a4afce80ecb67fd5ff72e1da0332 /package/mtd/0002-lib-libfec.c-fix-build-against-musl.patch | |
parent | bfb5d066fc8a4a5f4be4e0f99dd75b62f32ec787 (diff) | |
download | buildroot-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/0002-lib-libfec.c-fix-build-against-musl.patch')
-rw-r--r-- | package/mtd/0002-lib-libfec.c-fix-build-against-musl.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/mtd/0002-lib-libfec.c-fix-build-against-musl.patch b/package/mtd/0002-lib-libfec.c-fix-build-against-musl.patch new file mode 100644 index 0000000000..3b1da53fbd --- /dev/null +++ b/package/mtd/0002-lib-libfec.c-fix-build-against-musl.patch @@ -0,0 +1,29 @@ +From 7086438e488fa57c1add720590256f2c92602877 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> +Date: Tue, 31 Mar 2015 00:31:34 +0200 +Subject: [PATCH 2/4] lib/libfec.c: fix build against musl +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Add missing #include <sys/types.h> for u_long. + +Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> +--- + lib/libfec.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/libfec.c b/lib/libfec.c +index ff5a127..c5e7749 100644 +--- a/lib/libfec.c ++++ b/lib/libfec.c +@@ -45,6 +45,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <sys/types.h> + + /* + * stuff used for testing purposes only +-- +2.3.6 |