]> rtime.felk.cvut.cz Git - can-utils.git/commitdiff
Include linux/sockios.h to fix musl build
authorYegor Yefremov <yegorslists@googlemail.com>
Thu, 16 Jul 2015 19:30:02 +0000 (21:30 +0200)
committerYegor Yefremov <yegorslists@googlemail.com>
Wed, 22 Jul 2015 19:12:51 +0000 (21:12 +0200)
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
slcand.c

index ab8ff0ac30f1c87ad76c3df0e66533386668391c..485cbe3776a3700099b623bf952fd184309e90f7 100644 (file)
@@ -52,6 +52,7 @@
 #include <net/if.h>
 #include <termios.h>
 #include <linux/tty.h>
+#include <linux/sockios.h>
 
 void print_usage(char *prg)
 {
index e5e4752cab55f29e599bb7d33e6e0b176f9dc76d..e8c70e0c8189bbecc65b540360e9103f11435110 100644 (file)
--- 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"