@ -66,7 +66,7 @@ dnl Add library for mingw
case $host in
*-mingw*)
CFLAGS="$CFLAGS -mno-ms-bitfields"
LIBS="$LIBS -lws2_32"
LIBS="$LIBS -lws2_32 -liphlpapi"
;;
*-cygwin*)
@ -117,7 +117,7 @@ list(APPEND DEPS
)
if (MINGW)
list(APPEND DEPS ws2_32)
list(APPEND DEPS ws2_32 iphlpapi)
add_compile_definitions(CARES_STATICLIB PCRE_STATIC)
endif ()