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 2/2] Include linux/sockios.h to fix musl build
Date: Wed, 22 Jul 2015 20:59:28 +0200	[thread overview]
Message-ID: <1437591568-19452-3-git-send-email-yegorslists@googlemail.com> (raw)
In-Reply-To: <1437591568-19452-1-git-send-email-yegorslists@googlemail.com>

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


  parent reply	other threads:[~2015-07-22 19:00 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 ` [PATCH 1/2] log2asc: include sys/time.h Yegor Yefremov
2015-07-22 18:59 ` Yegor Yefremov [this message]
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-3-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