dns: fix build warnings when compiling without ipv6
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Tue, 16 Dec 2008 14:35:55 +0000 (14:35 +0000)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Tue, 16 Dec 2008 14:35:55 +0000 (14:35 +0000)
Author: Vance Shipley <vances@motivity.ca>
Committer: Andrei Pelinescu-Onciul <andrei@iptel.org>

resolve.h

index 76f3903..4b702ec 100644 (file)
--- a/resolve.h
+++ b/resolve.h
@@ -337,9 +337,11 @@ static inline struct hostent* _resolvehost(char* name)
 {
        static struct hostent* he=0;
 #ifdef HAVE_GETIPNODEBYNAME 
+#ifdef USE_IPV6
        int err;
        static struct hostent* he2=0;
 #endif
+#endif
 #ifndef DNS_IP_HACK
 #ifdef USE_IPV6
        int len;