Browse code

dns: fix build warnings when compiling without ipv6

Author: Vance Shipley <vances@motivity.ca>
Committer: Andrei Pelinescu-Onciul <andrei@iptel.org>

Andrei Pelinescu-Onciul authored on 16/12/2008 14:35:55
Showing 1 changed files
... ...
@@ -337,9 +337,11 @@ static inline struct hostent* _resolvehost(char* name)
337 337
 {
338 338
 	static struct hostent* he=0;
339 339
 #ifdef HAVE_GETIPNODEBYNAME 
340
+#ifdef USE_IPV6
340 341
 	int err;
341 342
 	static struct hostent* he2=0;
342 343
 #endif
344
+#endif
343 345
 #ifndef DNS_IP_HACK
344 346
 #ifdef USE_IPV6
345 347
 	int len;