From d42ad746ae5e07f6f7bc07a28c8d0c30e2e6e673 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 24 Jul 2025 14:44:03 +0200 Subject: [PATCH] url: fix to include `winsock2.h` before `iphlpapi.h` Seen with a non-unity, mingw-w64 CI job targeting a Vista+ Windows version while working on a PR. This combination is not normally tested in CI. Fixing: ``` In file included from D:/my-cache/mingw32/i686-w64-mingw32/include/iprtrmib.h:9:0, from D:/my-cache/mingw32/i686-w64-mingw32/include/iphlpapi.h:17, from D:/a/curl/curl/lib/url.c:63: D:/my-cache/mingw32/i686-w64-mingw32/include/mprapi.h:865:3: error: unknown type name 'CERT_NAME_BLOB' CERT_NAME_BLOB *certificateNames; ^~~~~~~~~~~~~~ D:/my-cache/mingw32/i686-w64-mingw32/include/mprapi.h:887:3: error: unknown type name 'CRYPT_HASH_BLOB' CRYPT_HASH_BLOB certBlob; ^~~~~~~~~~~~~~~ ``` Ref: https://github.com/curl/curl/actions/runs/16497057672/job/46645264552?pr=18012#step:10:140 Follow-up to 0d71b18153c8edb996738f8a362373fc72d0013b #17413 Ref: #18009 --- lib/url.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/url.c b/lib/url.c index 3d78ceeed5..da832e3396 100644 --- a/lib/url.c +++ b/lib/url.c @@ -60,6 +60,7 @@ #endif #if defined(HAVE_IF_NAMETOINDEX) && defined(_WIN32) +#include #include #endif