You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ make check
CC lib1960.o
lib1960.c:66:22: error: variable has incomplete type 'struct sockaddr_in'
66 | struct sockaddr_in serv_addr;
| ^
lib1960.c:66:10: note: forward declaration of 'struct sockaddr_in'
66 | struct sockaddr_in serv_addr;
| ^
1 error generated.
*** Error code 1
I expected the following
Commit a3585c9 removed #include <netinet/in.h> from tests/libtest/lib1960.c which still is needed on FreeBSD. After adding that include, lib1960.c successfully compiles and make check reports 100% tests OK.
Although I think that include should be in inet_pton.h with appropriate #ifdef checks.
I did this
I expected the following
Commit a3585c9 removed
#include <netinet/in.h>
fromtests/libtest/lib1960.c
which still is needed on FreeBSD. After adding that include, lib1960.c successfully compiles and make check reports 100% tests OK.Although I think that include should be in
inet_pton.h
with appropriate#ifdef
checks.curl/libcurl version
curl 8.12.0 (x86_64-unknown-freebsd14.2) libcurl/8.12.0 GnuTLS/3.8.8 zlib/1.3.1 libidn2/2.3.7 libpsl/0.21.5 nghttp2/1.64.0
Release-Date: 2025-02-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM PSL SSL threadsafe TLS-SRP UnixSockets
operating system
FreeBSD wachtel.zoo 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64
The text was updated successfully, but these errors were encountered: