--- parser3/src/classes/curl.C 2026/07/19 19:06:14 1.80 +++ parser3/src/classes/curl.C 2026/07/19 20:25:15 1.82 @@ -18,7 +18,11 @@ #include "pa_http.h" #include "ltdl.h" -volatile const char * IDENT_CURL_C="$Id: curl.C,v 1.80 2026/07/19 19:06:14 moko Exp $"; +#ifdef _MSC_VER +#include "winsock2.h" // AF_INET & co +#endif + +volatile const char * IDENT_CURL_C="$Id: curl.C,v 1.82 2026/07/19 20:25:15 moko Exp $"; class MCurl: public Methoded { public: @@ -592,7 +596,7 @@ static void curl_setopt(HashStringValue: // hash of $.[host:port][address[,address]] entries to populate DNS cache with, bypassing the resolver HashStringValue *value_hash=v.as_hash("failed to set option 'resolve': value"); - res=f_curl_easy_setopt(curl(), opt->id, options().resolve=curl_resolve(value_hash)); + res=f_curl_easy_setopt(curl(), opt->id, options().resolve=value_hash ? curl_resolve(value_hash) : 0); break; } case CurlOption::CURL_FILE:{