mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 14:29:55 +02:00
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>
This commit is contained in:
@@ -52,6 +52,7 @@
|
|||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <linux/tty.h>
|
#include <linux/tty.h>
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
|
||||||
void print_usage(char *prg)
|
void print_usage(char *prg)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <linux/tty.h>
|
#include <linux/tty.h>
|
||||||
|
#include <linux/sockios.h>
|
||||||
|
|
||||||
/* Change this to whatever your daemon is called */
|
/* Change this to whatever your daemon is called */
|
||||||
#define DAEMON_NAME "slcand"
|
#define DAEMON_NAME "slcand"
|
||||||
|
|||||||
Reference in New Issue
Block a user