mirror of
https://github.com/curl/curl.git
synced 2026-06-06 19:54:20 +03:00
build: include wincrypt.h for if_nametoindex detection
This commit is contained in:
parent
9bad7ec86b
commit
2dada9e472
2 changed files with 3 additions and 1 deletions
|
|
@ -1785,7 +1785,8 @@ check_function_exists("setlocale" HAVE_SETLOCALE)
|
|||
check_function_exists("setrlimit" HAVE_SETRLIMIT)
|
||||
|
||||
if(WIN32)
|
||||
check_symbol_exists("if_nametoindex" "winsock2.h;iphlpapi.h" HAVE_IF_NAMETOINDEX) # Windows Vista+ non-UWP
|
||||
# include wincrypt.h for mingw-w64 __MINGW64_VERSION_MAJOR <= 5 */
|
||||
check_symbol_exists("if_nametoindex" "winsock2.h;wincrypt.h;iphlpapi.h" HAVE_IF_NAMETOINDEX) # Windows Vista+ non-UWP */
|
||||
else()
|
||||
check_function_exists("if_nametoindex" HAVE_IF_NAMETOINDEX) # net/if.h
|
||||
check_function_exists("realpath" HAVE_REALPATH)
|
||||
|
|
|
|||
|
|
@ -4275,6 +4275,7 @@ if test "$curl_cv_native_windows" = 'yes'; then
|
|||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#include <wincrypt.h> /* for mingw-w64 __MINGW64_VERSION_MAJOR <= 5 */
|
||||
#include <iphlpapi.h>
|
||||
]],[[
|
||||
if_nametoindex("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue