add: len=strlen(name);  if ( ((ip=str2ip(name, len))!=0) #ifdef	USE_IPV6 || ((ip=str2ip6(name, len))!=0)
context: static inline struct hostent* resolvehost(const char* name){	struct hostent* he;	#ifdef DNS_IP_HACK#endif	he=gethostbyname(name); /*ipv4*/#ifdef USE_IPV6	if(he==0){		/*try ipv6*/		he=gethostbyname2(name, AF_INET6);	}#endif	return he;}