(svn r15933) -Fix (r15920): mingw doesn't know getaddrinfo() and freeaddrinfo() either

This commit is contained in:
glx
2009-04-03 14:01:45 +00:00
parent 2d140fab62
commit cfac582c36
2 changed files with 72 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ SOCKET NetworkAddress::Resolve(int family, int socktype, int flags, LoopProc fun
int e = getaddrinfo(this->GetHostname(), port_name, &hints, &ai);
if (e != 0) {
DEBUG(net, 0, "getaddrinfo failed: %s", gai_strerror(e));
DEBUG(net, 0, "getaddrinfo failed: %s", FS2OTTD(gai_strerror(e)));
return INVALID_SOCKET;
}