[Bug 272643] lang/go120: Build of one port fails with could not determine kind of name for C.AF_INET, etc

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 27 Jul 2024 17:28:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272643

--- Comment #6 from Rene Ladan <rene@FreeBSD.org> ---
I don't think this is a bug in Go itself, unlike what this PR suggests. If you
look at the offending file you can see that it includes /usr/include/netdb.h
(because we are not on _WIN32) but that file does not define the four C.AF_*
and C.SOCK_STREAM values anywhere, also not via recursive includes. These
values are defined in /usr/include/sys/socket.h, which is what my patch ends up
including and which fixes the build of the port.

-- 
You are receiving this mail because:
You are the assignee for the bug.