rem: struct hostent* he;
add: static struct hostent* he=0; #ifdef __sun__ int err; #endif
context: static inline struct hostent* resolvehost(const char* name){	struct hostent* he;#ifdef DNS_IP_HACK	struct ip_addr* ip;	int len;		len=strlen(name);	/* check if it's an ip address */	if ( ((ip=str2ip(name, len))!=0)#ifdef	USE_IPV6		  || ((ip=str2ip6(name, len))!=0)#endif		){		/* we are lucky, this is an ip address */		return ip_addr2he(name, len, ip);	}	#endif	he=gethostbyname(name); /*ipv4*/#ifdef USE_IPV6	if(he==0){		/*try ipv6*/		he=gethostbyname2(name, AF_INET6);	}#endif	return he;}