Fresh pull from upstream
[librecmc/librecmc.git] / toolchain / musl / patches / 029-fix-ifru_data-and-ifcu_buf-types-in-net-if.h.patch
1 From 3848a99f65952a77c03bbd905cae988f37f13ea6 Mon Sep 17 00:00:00 2001
2 From: Daniel Sabogal <dsabogalcc@gmail.com>
3 Date: Fri, 16 Sep 2016 13:34:24 -0400
4 Subject: fix ifru_data and ifcu_buf types in net/if.h
5
6 glibc, freebsd, and openbsd use character pointers (caddr_t) for
7 these fields. only linux uses void pointer for the ifru_data type.
8 ---
9  include/net/if.h | 4 ++--
10  1 file changed, 2 insertions(+), 2 deletions(-)
11
12 diff --git a/include/net/if.h b/include/net/if.h
13 index 1a4059d..2f2fcc1 100644
14 --- a/include/net/if.h
15 +++ b/include/net/if.h
16 @@ -89,7 +89,7 @@ struct ifreq {
17                 struct ifmap ifru_map;
18                 char ifru_slave[IFNAMSIZ];
19                 char ifru_newname[IFNAMSIZ];
20 -               void *ifru_data;
21 +               char *ifru_data;
22         } ifr_ifru;
23  };
24  
25 @@ -116,7 +116,7 @@ struct ifreq {
26  struct ifconf {
27         int ifc_len;            
28         union {
29 -               void *ifcu_buf;
30 +               char *ifcu_buf;
31                 struct ifreq *ifcu_req;
32         } ifc_ifcu;
33  };
34 -- 
35 cgit v0.11.2