git: ecc0c187a1e0 - main - net/ooni-probe-cli: explain why we need to include sys/socket.h

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Sun, 01 Dec 2024 14:33:33 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ecc0c187a1e0b457ae188073a09598dc3acea104

commit ecc0c187a1e0b457ae188073a09598dc3acea104
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2024-12-01 14:32:57 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2024-12-01 14:32:57 +0000

    net/ooni-probe-cli: explain why we need to include sys/socket.h
---
 net/ooni-probe-cli/files/patch-internal_netxlite_getaddrinfo__cgo.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ooni-probe-cli/files/patch-internal_netxlite_getaddrinfo__cgo.go b/net/ooni-probe-cli/files/patch-internal_netxlite_getaddrinfo__cgo.go
index 8ea2f1b8f21f..d34ca221b498 100644
--- a/net/ooni-probe-cli/files/patch-internal_netxlite_getaddrinfo__cgo.go
+++ b/net/ooni-probe-cli/files/patch-internal_netxlite_getaddrinfo__cgo.go
@@ -4,7 +4,7 @@
  
  #ifndef _WIN32
  #include <netdb.h> // for getaddrinfo
-+#include <sys/socket.h>
++#include <sys/socket.h> // for C.SOCK_STREAM and C.AF_*
  #else
  #include <ws2tcpip.h> // for getaddrinfo
  #endif