diff --git a/CMakeLists.txt b/CMakeLists.txt index d3b4fc7564..3d11fc5935 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1065,6 +1065,10 @@ if(NOT MSVC OR (MSVC_VERSION GREATER_EQUAL 1900)) check_symbol_exists(snprintf "${CURL_INCLUDES}" HAVE_SNPRINTF) endif() check_function_exists(mach_absolute_time HAVE_MACH_ABSOLUTE_TIME) +check_symbol_exists(inet_ntop "${CURL_INCLUDES}" HAVE_INET_NTOP) +if(MSVC AND (MSVC_VERSION LESS_EQUAL 1600)) + set(HAVE_INET_NTOP OFF) +endif() check_symbol_exists(inet_pton "${CURL_INCLUDES}" HAVE_INET_PTON) check_symbol_exists(fsetxattr "${CURL_INCLUDES}" HAVE_FSETXATTR)