From: Brandon Casey Date: Mon, 18 Jun 2007 21:53:24 GMT Subject: Re: [PATCH] Add a local implementation of hstrerror for the system which do not have it Message-ID: <4676FED4.70905@nrlssc.navy.mil> In-Reply-To: <20070618213749.GB16397@steel.home> Alex Riesen wrote: > Brandon Casey, Mon, Jun 18, 2007 23:28:10 +0200: >> Alex Riesen wrote: >>> The function converts the value of h_errno (last error of name >>> resolver library, see netdb.h). One of systems which supposedly do >>> not have the function is SunOS. POSIX does not mandate its presence. >> I saw a comment on another mailing list that hstrerror() is in the >> resolv library. >> >> So adding -lresolv should do it. >> >> A quick compile works for my test program. >> > > Ah-ha. Good to know, thanks! > > Still, the patch is correct: no need for hstrerror there. I see, right, just the NO_IPV6 case. -brandon