]> git.feebdaed.xyz Git - 0xmirror/curl.git/commit
build: unix socket tidy-ups
authorViktor Szakats <commit@vsz.me>
Tue, 16 Dec 2025 00:37:10 +0000 (01:37 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 16 Dec 2025 12:41:25 +0000 (13:41 +0100)
commit5431b3dd6bbbf3b3ae25dab955e5e3a2f94d49ad
treecd274a2d07d36ff580541168ff56e7f9a07853f7
parent3a485c2ea06d53fd648ee7c3a35873a72e40ec9c
build: unix socket tidy-ups

- lib: delete two unused `<sys/un.h>` includes.

- lib: drop interim macro `WIN32_SOCKADDR_UN`.
  Follow-up to 0fe9018e1a1af0d906dfe934efe2f2b1ba48f060 #7737
  Also fixing a potential issue of leaving unix socket support disabled
  if any header would include Windows' `afunix.h`, and define
  `UNIX_PATH_MAX` on its own.

- connect: honor unix socket disable option.

- connect: simplify unix socket PP condition.
  `USE_UNIX_SOCKETS` already means the necessary header/type are
  available, guaranteed by configure. `AF_UNIX` is already used
  elsewhere in the code without explicit checks.

- curl_setup.h: document availability of `afunix.h` on Windows more.
  It requires mingw-w64 10+ or MS SDK 10.17763.0 VS2017 15.8+.

- curl_setup.h: use `afunix.h` with mingw-w64 v10+ to start avoiding
  the local workaround if possible.

- GHA/windows: test disable unix socket option on Windows.

Ref: https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/

Closes #19989
.github/workflows/windows.yml
lib/cf-ip-happy.c
lib/cf-socket.c
lib/connect.c
lib/curl_setup.h