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 0d71b18153 #17413
Ref: #18009
This commit is contained in:
Viktor Szakats 2025-07-24 14:44:03 +02:00
parent 28f4d7df06
commit d42ad746ae
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -60,6 +60,7 @@
#endif
#if defined(HAVE_IF_NAMETOINDEX) && defined(_WIN32)
#include <winsock2.h>
#include <iphlpapi.h>
#endif