mirror of
git://git.musl-libc.org/musl
synced 2024-12-16 19:55:38 +00:00
add additional compatibility union member for ipv6 addresses
in6_* is in the reserved namespace, so this is valid
This commit is contained in:
parent
58aa5f45ed
commit
ca2d3c6ef4
@ -27,10 +27,12 @@ struct in6_addr
|
||||
{
|
||||
union {
|
||||
uint8_t __s6_addr[16];
|
||||
uint16_t __s6_addr16[8];
|
||||
uint32_t __s6_addr32[4];
|
||||
} __in6_union;
|
||||
};
|
||||
#define s6_addr __in6_union.__s6_addr
|
||||
#define s6_addr16 __in6_union.__s6_addr16
|
||||
#define s6_addr32 __in6_union.__s6_addr32
|
||||
|
||||
struct sockaddr_in6
|
||||
|
Loading…
Reference in New Issue
Block a user