From 84889ea4c0051c9b4b91e3361f6156e6f1f726dd Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Mon, 26 Nov 2012 18:15:56 -0600 Subject: Fix automake warnings. --- kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kopete/protocols/jabber/jingle/libjingle/talk/base/socketaddress.cc') 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(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); -- cgit v1.2.1