1 From 4eeb901b7aadb167e44f476fd665f7fedf491e51 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
3 Date: Fri, 6 May 2016 09:28:36 +0200
4 Subject: [PATCH] Fix missing include for caddr_t
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 caddr_t is defined in <sys/types.h>. This header file must be included to fix
10 build with the musl C library:
12 netinfo.c: In function 'mc_net_info_get_permanent_mac':
13 netinfo.c:116:28: error: 'caddr_t' undeclared (first use in this function)
14 req.ifr_data = (caddr_t)epa;
16 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
19 1 file changed, 1 insertion(+)
21 diff --git a/src/netinfo.c b/src/netinfo.c
22 index 3525123..1aa3293 100644
28 #include <sys/ioctl.h>
29 +#include <sys/types.h>
31 #include <linux/ethtool.h>
32 #include <linux/sockios.h>