Pure getifaddrs()/freeifaddrs() calls do not need any type definitions beyond those provided by <ifaddrs.h> itself.
The subsequent struct ifaddrs processing in netif.cpp does not involve any symbols from <sys/types.h>.
Platform-specific manual pages for reviewers' convenience:
- https://www.man7.org/linux/man-pages/man3/getifaddrs.3.html
- https://man.freebsd.org/cgi/man.cgi?query=getifaddrs
- https://man.netbsd.org/getifaddrs.3
- https://man.openbsd.org/getifaddrs.3
- https://www.illumos.org/man/3SOCKET/getifaddrs
Related to #34995.