Linux CAN drivers development
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegorslists@googlemail.com>
To: linux-can@vger.kernel.org
Cc: socketcan@hartkopp.net, mkl@pengutronix.de,
	Yegor Yefremov <yegorslists@googlemail.com>
Subject: [PATCH 1/2] log2asc: include sys/time.h
Date: Wed, 22 Jul 2015 20:59:27 +0200	[thread overview]
Message-ID: <1437591568-19452-2-git-send-email-yegorslists@googlemail.com> (raw)
In-Reply-To: <1437591568-19452-1-git-send-email-yegorslists@googlemail.com>

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


  reply	other threads:[~2015-07-22 18:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 18:59 can-utils: fix musl build issues Yegor Yefremov
2015-07-22 18:59 ` Yegor Yefremov [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1437591568-19452-2-git-send-email-yegorslists@googlemail.com \
    --to=yegorslists@googlemail.com \
    --cc=linux-can@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=socketcan@hartkopp.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox