libc
libc copied to clipboard
AF_INET and AF_INET6 should be of type sa_family_t
It's a define in the includes, but used as a sa_family_t
. See sockaddr
for example.
Unfortunately these probably can't change at this point, but we could consider change for the next major version bump of libc.
PRs welcome.
https://github.com/sum12/libc/commit/93580add0dc2d66213400d9cc5d2ad19f7c2c436
I tried to fix it. but am not sure the fix is complete.
Should I create a PR ? I would like to contribute.
Breaking release of libc will be released soon, so we can now change type for AF_INET
, etc. But I think its type should not be changed, because first argument of socket
is c_int
. :) There is no perfect solution here. Let's keep everything as is