changeset 13425:95cc25e78ef6

[gaim-migrate @ 15800] #ifdef HAVE_GETADDRINFO instead of #if HAVE_GETADDRINFO to avoid warnings committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 07 Mar 2006 04:26:44 +0000
parents d52b9874c0de
children 47e51939c923
files src/network.c src/proxy.c
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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];
--- 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));