# HG changeset patch # User Daniel Atallah # Date 1141705604 0 # Node ID 95cc25e78ef6eb6957596f8d08b52fd8c0b46f70 # Parent d52b9874c0dec9facdf761308128f0c5ffca6772 [gaim-migrate @ 15800] #ifdef HAVE_GETADDRINFO instead of #if HAVE_GETADDRINFO to avoid warnings committer: Tailor Script diff -r d52b9874c0de -r 95cc25e78ef6 src/network.c --- a/src/network.c Tue Mar 07 04:16:13 2006 +0000 +++ b/src/network.c Tue Mar 07 04:26:44 2006 +0000 @@ -206,7 +206,7 @@ int listenfd = -1; const int on = 1; ListenUPnPData *ld; -#if HAVE_GETADDRINFO +#ifdef HAVE_GETADDRINFO int errnum; struct addrinfo hints, *res, *next; char serv[6]; diff -r d52b9874c0de -r 95cc25e78ef6 src/proxy.c --- a/src/proxy.c Tue Mar 07 04:16:13 2006 +0000 +++ b/src/proxy.c Tue Mar 07 04:26:44 2006 +0000 @@ -351,7 +351,7 @@ dns_params_t dns_params; const size_t zero = 0; int rc; -#if HAVE_GETADDRINFO +#ifdef HAVE_GETADDRINFO struct addrinfo hints, *res, *tmp; char servname[20]; #else @@ -408,7 +408,7 @@ /* We have the hostname and port, now resolve the IP */ -#if HAVE_GETADDRINFO +#ifdef HAVE_GETADDRINFO g_snprintf(servname, sizeof(servname), "%d", dns_params.port); memset(&hints, 0, sizeof(hints)); @@ -638,7 +638,7 @@ if ((rc == 4) && (err != 0)) { char message[1024]; -#if HAVE_GETADDRINFO +#ifdef HAVE_GETADDRINFO g_snprintf(message, sizeof(message), "DNS error: %s (pid=%d)", gai_strerror(err), req->dns_pid); #else @@ -784,7 +784,7 @@ static gpointer dns_thread(gpointer data) { -#if HAVE_GETADDRINFO +#ifdef HAVE_GETADDRINFO int rc; struct addrinfo hints, *res, *tmp; char servname[20]; @@ -794,7 +794,7 @@ #endif dns_tdata *td = (dns_tdata*)data; -#if HAVE_GETADDRINFO +#ifdef HAVE_GETADDRINFO g_snprintf(servname, sizeof(servname), "%d", td->port); memset(&hints,0,sizeof(hints));