]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/macchanger/0001-Fix-missing-include-for-caddr_t.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / macchanger / 0001-Fix-missing-include-for-caddr_t.patch
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
8
9 caddr_t is defined in <sys/types.h>. This header file must be included to fix
10 build with the musl C library:
11
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;
15
16 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
17 ---
18  src/netinfo.c | 1 +
19  1 file changed, 1 insertion(+)
20
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>
30  
31  #include <linux/ethtool.h>
32  #include <linux/sockios.h>
33 -- 
34 2.8.2
35