*waitp = 0; /* don't wait, we act synchronously */
- if(1 == inet_pton(AF_INET, hostname, &in))
+ if(1 == Curl_inet_pton(AF_INET, hostname, &in))
/* This is a dotted IP address 123.123.123.123-style */
return Curl_ip2addr(in, hostname, port);
}
}
- if((1 == inet_pton(AF_INET, hostname, addrbuf)) ||
- (1 == inet_pton(AF_INET6, hostname, addrbuf))) {
+ if((1 == Curl_inet_pton(AF_INET, hostname, addrbuf)) ||
+ (1 == Curl_inet_pton(AF_INET6, hostname, addrbuf))) {
/* the given address is numerical only, prevent a reverse lookup */
ai_flags = AI_NUMERICHOST;
}