]> git.ipfire.org Git - thirdparty/curl.git/commit
curl_setup: fix missing `ADDRESS_FAMILY` type in rare build cases
authorViktor Szakats <commit@vsz.me>
Fri, 10 Jan 2025 15:58:48 +0000 (16:58 +0100)
committerViktor Szakats <commit@vsz.me>
Sat, 11 Jan 2025 23:34:21 +0000 (00:34 +0100)
commit81680a4070ddcc22144c092a9e00d4c9a93dfcd3
tree21910a275126fdfd26c91073316e64ecb55be44c
parent7eb4ddb850d3757ac9e0b60b0198bbb11e83135e
curl_setup: fix missing `ADDRESS_FAMILY` type in rare build cases

Build failed when both `ADDRESS_FAMILY` and `sockaddr_un` stuct were
missing from the Windows SDK, with UnixSockets enabled.

Seen with GNU 4.4.0 in CeGCC 0.59.1:
```
lib/curl_setup.h:983: error: expected specifier-qualifier-list before 'ADDRESS_FAMILY'
lib/curl_setup.h:985: warning: struct has no members
```

Also reported with VS2003:
https://datagirl.xyz/posts/wolfssl_curl_w2k.html

Closes #15969
lib/curl_setup.h