mirror of
https://github.com/curl/curl.git
synced 2026-06-06 18:24:49 +03:00
wincrypt.h is necessary here
The issue with this is that the if_nametoindex auto-detection code would also need this hack, and it will make those super complicated. The auto-detection is not normally run with cmake (but necessary to pass a checkprefill test). With autotools however, it's required to detect if_nametoindex. `wincrypt.h` is not safe to include as-is because UWP does not support it, but in this case this is safe because `if_nametoindex` is not supported by UWP, and thus `HAVE_IF_NAMETOINDEX` is always undefined.
This commit is contained in:
parent
d42ad746ae
commit
8e4aa0d47b
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,9 @@
|
|||
#endif
|
||||
|
||||
#if defined(HAVE_IF_NAMETOINDEX) && defined(_WIN32)
|
||||
#include <winsock2.h>
|
||||
#if __MINGW64_VERSION_MAJOR <= 5
|
||||
#include <wincrypt.h> /* to avoid a mingw-w64 header issue */
|
||||
#endif
|
||||
#include <iphlpapi.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue