fix addrinfo struct def

Fixes #4816
This commit is contained in:
Laytan Laats
2025-02-12 19:24:27 +01:00
parent 4c4b481ccc
commit 55302280d8
3 changed files with 25 additions and 9 deletions
+2
View File
@@ -1,3 +1,4 @@
#include <stddef.h>
#include <dirent.h>
#include <fcntl.h>
#include <glob.h>
@@ -70,6 +71,7 @@ int main(int argc, char *argv[])
printf("protoent %zu %zu\n", sizeof(struct protoent), _Alignof(struct protoent));
printf("servent %zu %zu\n", sizeof(struct servent), _Alignof(struct servent));
printf("addrinfo %zu %zu\n", sizeof(struct addrinfo), _Alignof(struct addrinfo));
printf("ai_canonname %zu\n", offsetof(struct addrinfo, ai_canonname));
printf("pollfd %zu %zu\n", sizeof(struct pollfd), _Alignof(struct pollfd));