]> git.feebdaed.xyz Git - 0xmirror/curl.git/commit
cf-socket: enable Win10 `TCP_KEEP*` options with old SDKs
authorViktor Szakats <commit@vsz.me>
Tue, 16 Dec 2025 15:41:05 +0000 (16:41 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 16 Dec 2025 16:22:50 +0000 (17:22 +0100)
commit627e32fa12fe94dbbd4302259a979399f2a9a8db
tree23cd65a748743fbcdb826f58134a78ee6d14fb71
parentbe76b32aed8ba5ee96bbd924a3e3fdbe959b321b
cf-socket: enable Win10 `TCP_KEEP*` options with old SDKs

Define `TCP_KEEP*` macros if they are missing in Windows builds.
To allow using these runtime `setsockopt()` options regardless of
build-time SDK version, when running on Windows 10.0.16299+.

In practice in enables them for builds using mingw-w64 <12, and
MSVC with Windows SDK <10.

Before this patch these runtime options required building curl with
a recent toolchain.

Follow-up to f0de14168a4d1c3a4ed43a04af92c5755c84b9fc #19559

Closes #19999
lib/cf-socket.c