* can-utils: fix musl build issues
@ 2015-07-22 18:59 Yegor Yefremov
2015-07-22 18:59 ` [PATCH 1/2] log2asc: include sys/time.h Yegor Yefremov
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Yegor Yefremov @ 2015-07-22 18:59 UTC (permalink / raw)
To: linux-can; +Cc: socketcan, mkl
These patches fix musl C library related build failures. See
http://autobuild.buildroot.net/results/0dd/0ddb5a70358bdbb491fbee670c7843c15217e78d/build-end.log
for build log.
Regards,
Yegor
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] log2asc: include sys/time.h
2015-07-22 18:59 can-utils: fix musl build issues Yegor Yefremov
@ 2015-07-22 18:59 ` Yegor Yefremov
2015-07-22 18:59 ` [PATCH 2/2] Include linux/sockios.h to fix musl build Yegor Yefremov
2015-07-22 19:06 ` can-utils: fix musl build issues Oliver Hartkopp
2 siblings, 0 replies; 4+ messages in thread
From: Yegor Yefremov @ 2015-07-22 18:59 UTC (permalink / raw)
To: linux-can; +Cc: socketcan, mkl, Yegor Yefremov
Without this patch compilation against musl C library
breaks, because struct timeval cannot be found.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] Include linux/sockios.h to fix musl build
2015-07-22 18:59 can-utils: fix musl build issues Yegor Yefremov
2015-07-22 18:59 ` [PATCH 1/2] log2asc: include sys/time.h Yegor Yefremov
@ 2015-07-22 18:59 ` Yegor Yefremov
2015-07-22 19:06 ` can-utils: fix musl build issues Oliver Hartkopp
2 siblings, 0 replies; 4+ messages in thread
From: Yegor Yefremov @ 2015-07-22 18:59 UTC (permalink / raw)
To: linux-can; +Cc: socketcan, mkl, Yegor Yefremov
Including <sys/ioctl.h> and <net/if.h> is not sufficient
to musl to find SIOCSIFNAME, so <linux/sockios.h> must be
included too.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
slcan_attach.c | 1 +
slcand.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/slcan_attach.c b/slcan_attach.c
index ab8ff0a..485cbe3 100644
--- a/slcan_attach.c
+++ b/slcan_attach.c
@@ -52,6 +52,7 @@
#include <net/if.h>
#include <termios.h>
#include <linux/tty.h>
+#include <linux/sockios.h>
void print_usage(char *prg)
{
diff --git a/slcand.c b/slcand.c
index e5e4752..e8c70e0 100644
--- a/slcand.c
+++ b/slcand.c
@@ -38,6 +38,7 @@
#include <net/if.h>
#include <termios.h>
#include <linux/tty.h>
+#include <linux/sockios.h>
/* Change this to whatever your daemon is called */
#define DAEMON_NAME "slcand"
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: can-utils: fix musl build issues
2015-07-22 18:59 can-utils: fix musl build issues Yegor Yefremov
2015-07-22 18:59 ` [PATCH 1/2] log2asc: include sys/time.h Yegor Yefremov
2015-07-22 18:59 ` [PATCH 2/2] Include linux/sockios.h to fix musl build Yegor Yefremov
@ 2015-07-22 19:06 ` Oliver Hartkopp
2 siblings, 0 replies; 4+ messages in thread
From: Oliver Hartkopp @ 2015-07-22 19:06 UTC (permalink / raw)
To: Yegor Yefremov, linux-can; +Cc: mkl
On 22.07.2015 20:59, Yegor Yefremov wrote:
> These patches fix musl C library related build failures. See
> http://autobuild.buildroot.net/results/0dd/0ddb5a70358bdbb491fbee670c7843c15217e78d/build-end.log
> for build log.
Hello Yegor,
looks sane :-)
Please apply while you're at it.
Many thanks,
Oliver
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-07-22 19:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 18:59 can-utils: fix musl build issues Yegor Yefremov
2015-07-22 18:59 ` [PATCH 1/2] log2asc: include sys/time.h Yegor Yefremov
2015-07-22 18:59 ` [PATCH 2/2] Include linux/sockios.h to fix musl build Yegor Yefremov
2015-07-22 19:06 ` can-utils: fix musl build issues Oliver Hartkopp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).