docker-engine: new package
[buildroot-gz.git] / package / macchanger / 0001-Fix-missing-include-for-caddr_t.patch
blobcf5ade8c2ce339ac3c5b5d7123c82b092e8f97ce
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
5 MIME-Version: 1.0
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>
17 ---
18 src/netinfo.c | 1 +
19 1 file changed, 1 insertion(+)
21 diff --git a/src/netinfo.c b/src/netinfo.c
22 index 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>
31 #include <linux/ethtool.h>
32 #include <linux/sockios.h>
33 --
34 2.8.2