Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix getaddrinfo failing with EAI_HINTS on FreeBSD
This fixes spectest failures (e.g. in S32-io/IO-Socket-INET.t) on FreeBSD. According to the man page of getaddrinfo() '[a]ll other elements of the addrinfo structure passed via hints must be zero or the null pointer' (similiar wording on Linux). This requirement is actually enforced on FreeBSD: https://github.com/freebsd/freebsd/blob/89c48e12204df05d7db296d3ae5d2fd002b4b510/lib/libc/net/getaddrinfo.c#L429
- Loading branch information