can-utils: fix musl build
PATCH 1/1 can-utils: fix musl build
Include additional headers like <sys/time.h> and <linux/sockios.h> to resolve undefined symbols.
Fixes following autobuild failure:
http://autobuild.buildroot.net/results/0dd/0ddb5a70358bdbb491fbee670c7843c15217e78d/
Signed-off-by Yegor Yefremov <[email protected]>
--- .../0001-log2asc-include-sys-time.h.patch | 28 +++++++++++++++ ...Include-linux-sockios.h-to-fix-musl-build.patch | 42 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 package/can-utils/0001-log2asc-include-sys-time.h.patch create mode 100644 package/can-utils/0002-Include-linux-sockios.h-to-fix-musl-build.patch
package/can-utils/0001-log2asc-include-sys-time.h.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 50a71462a3291f7e08fa25f67b274792bb419211 Mon Sep 17 00:00:00 2001 +From: Yegor Yefremov <[email protected]> +Date: Tue, 14 Jul 2015 21:24:37 +0200 +Subject: [PATCH 1/2] log2asc: include sys/time.h + +Without this patch compilation against musl C library +breaks, because struct timeval cannot be found. + +Signed-off-by: Yegor Yefremov <[email protected]> +--- + log2asc.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/log2asc.c b/log2asc.c +index 29d13e8..8fb88a9 100644 +--- a/log2asc.c ++++ b/log2asc.c +@@ -48,6 +48,7 @@ + #include <unistd.h> + + #include <net/if.h> ++#include <sys/time.h> + #include <linux/can.h> + + #include "lib.h" +-- +2.1.4 +
package/can-utils/0002-Include-linux-sockios.h-to-fix-musl-build.patch new file +42 -0
42 lines not on this page · raw message
Signature · 1 line
2.1.4
Thomas Petazzoni
AppliedPATCH 1/1 can-utils: fix musl build
Dear Yegor Yefremov,
Quoted 6 lines · Yegor Yefremov
Include additional headers like <
sys/time.h> and <linux/sockios.h> to resolve undefined symbols.Fixes following autobuild failure:
http://autobuild.buildroot.net/results/0dd/0ddb5a70358bdbb491fbee670c7843c15217e78d/
Quoted 7 lines
Signed-off-by Yegor Yefremov <[email protected]>--- .../0001-log2asc-include-sys-time.h.patch | 28 +++++++++++++++ ...Include-linux-sockios.h-to-fix-musl-build.patch | 42 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 package/can-utils/0001-log2asc-include-sys-time.h.patch create mode 100644 package/can-utils/0002-Include-linux-sockios.h-to-fix-musl-build.patch
Applied, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com