Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go/packages: fix TestCgoOption to work on Windows
The cgoLookupHost function isn't defined on Windows in the net package in the standard library, but the addrinfoErrno type is (and is also defined on Unix). Look for that instead. Fixes golang/go#35839 Change-Id: I5a3b18d51209549002add1397b8f46de9ef2ee5a Reviewed-on: https://go-review.googlesource.com/c/tools/+/212478 Reviewed-by: Dmitri Shuralyov <[email protected]>
- Loading branch information