LibC: Add ss_family to sockaddr_storage

I'm not exactly sure if this is in the right spot in the structure,
especially since I read that this is supposed to be cast into other
structures.
This commit is contained in:
Luke 2020-09-09 08:43:53 +01:00 committed by Andreas Kling
parent b3be275cf7
commit 9266006349
Notes: sideshowbarker 2024-07-19 02:11:06 +09:00

View file

@ -124,6 +124,7 @@ enum {
#define SCM_TIMESTAMP SCM_TIMESTAMP
struct sockaddr_storage {
sa_family_t ss_family;
union {
char data[sizeof(struct sockaddr_un)];
void* alignment;