mirror of
https://github.com/fluencelabs/musl
synced 2025-06-14 07:21:40 +00:00
fix ifru_data and ifcu_buf types in net/if.h
glibc, freebsd, and openbsd use character pointers (caddr_t) for these fields. only linux uses void pointer for the ifru_data type.
This commit is contained in:
committed by
Rich Felker
parent
78897b0dc0
commit
3848a99f65
@ -89,7 +89,7 @@ struct ifreq {
|
|||||||
struct ifmap ifru_map;
|
struct ifmap ifru_map;
|
||||||
char ifru_slave[IFNAMSIZ];
|
char ifru_slave[IFNAMSIZ];
|
||||||
char ifru_newname[IFNAMSIZ];
|
char ifru_newname[IFNAMSIZ];
|
||||||
void *ifru_data;
|
char *ifru_data;
|
||||||
} ifr_ifru;
|
} ifr_ifru;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ struct ifreq {
|
|||||||
struct ifconf {
|
struct ifconf {
|
||||||
int ifc_len;
|
int ifc_len;
|
||||||
union {
|
union {
|
||||||
void *ifcu_buf;
|
char *ifcu_buf;
|
||||||
struct ifreq *ifcu_req;
|
struct ifreq *ifcu_req;
|
||||||
} ifc_ifcu;
|
} ifc_ifcu;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user