LibC: Make sockaddr and sockaddr_in compatible with other systems

sockaddr:
make sa_data is 14 bytes on all systems

sockaddr_in:
add sin_zero
This commit is contained in:
2025-08-08 01:03:31 +03:00
parent 3aa20a3a32
commit 92e962430b
3 changed files with 5 additions and 2 deletions

View File

@@ -87,6 +87,7 @@ struct sockaddr_in
sa_family_t sin_family; /* AF_INET. */
in_port_t sin_port; /* Port number. */
struct in_addr sin_addr; /* IP address. */
unsigned char sin_zero[8];
};
struct in6_addr