diff options
Diffstat (limited to 'kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc')
-rw-r--r-- | kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc b/kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc index f0228fbd..30d43fc6 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc +++ b/kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc @@ -246,14 +246,14 @@ uint32 SocketAddress::StringToIP(const std::string& hostname, bool use_dns) { LOG(INFO) << "=== DNS RESOLUTION (" << hostname << ") ==="; #if DISABLE_DNS LOG(WARNING) << "*** DNS DISABLED ***"; -#if WIN32 +#ifdef WIN32 WSASetLastError(WSAHOST_NOT_FOUND); #endif // WIN32 #endif // DISABLE_DNS if (hostent * pHost = gethostbyname(hostname.c_str())) { ip = NetworkToHost32(*reinterpret_cast<uint32 *>(pHost->h_addr_list[0])); } else { -#if WIN32 +#ifdef WIN32 LOG(LS_ERROR) << "gethostbyname error: " << WSAGetLastError(); #else LOG(LS_ERROR) << "gethostbyname error: " << strerror(h_errno); |