src/proxy.c

changeset 13426
032ea2c9ce2d
parent 13405
9abc78d6db91
child 13515
0cea461e904c
--- 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));
 

mercurial