]> git.ipfire.org Git - thirdparty/curl.git/commit
resolve: fix building without Unix sockets and `CURLDEBUG`
authorViktor Szakats <commit@vsz.me>
Thu, 13 Mar 2025 02:15:46 +0000 (03:15 +0100)
committerViktor Szakats <commit@vsz.me>
Thu, 13 Mar 2025 10:36:54 +0000 (11:36 +0100)
commitb70357c5f364e9dd6cc41ccb8bc0ca25f409fe34
tree83e6faebfe9de1b475bc562995dc879947d9c071
parent533ba0089b6ba9d8e7fbf89bb151e4e40459e658
resolve: fix building without Unix sockets and `CURLDEBUG`

```
In file included from server_bundle.c:7:
../../../tests/server/resolve.c:110:5: error: unknown type name 'curl_socket_t'; did you mean 'curl_socklen_t'?
    curl_socket_t s = socket(PF_INET6, SOCK_DGRAM, 0);
    ^~~~~~~~~~~~~
    curl_socklen_t
../../../include/curl/system.h:392:38: note: 'curl_socklen_t' declared here
  typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;
                                     ^
In file included from server_bundle.c:7:
../../../tests/server/resolve.c:111:13: error: use of undeclared identifier 'CURL_SOCKET_BAD'
    if(s == CURL_SOCKET_BAD)
            ^
```
Ref: https://github.com/curl/curl/actions/runs/13825438937/job/38679418428?pr=15000#step:14:47

Cherry-picked from #15000
Closes #16700
tests/server/util.h