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