Include linux/sockios.h to fix musl build

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>
pull/6/head
Yegor Yefremov 2015-07-16 21:30:02 +02:00
parent 48a0fdb941
commit f0abaaacb0
2 changed files with 2 additions and 0 deletions

View 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)
{

View File

@ -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"