2
0
Эх сурвалжийг харах

dns: fix build warnings when compiling without ipv6

Author: Vance Shipley <[email protected]>
Committer: Andrei Pelinescu-Onciul <[email protected]>
Andrei Pelinescu-Onciul 16 жил өмнө
parent
commit
476e1991ab
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      resolve.h

+ 2 - 0
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;