OK, hterror removed.


> Bruce Momjian <[EMAIL PROTECTED]> writes:
> > On BSDI, hstrerror is defined in netdb.h.  Do you have it anywhere?  Is
> > that a proper function call?
> 
> There is no hstrerror anywhere on HPUX.  h_errno is defined in
> <netdb.h>, but only with nonstandard compilation options:
> 
> #ifdef _XOPEN_SOURCE_EXTENDED
> extern int h_errno;
> #endif
> 
> The man page for gethostbyname() points out that h_errno will be garbage
> if the hostname was not resolved via a nameserver, anyway.
> 
> On the whole, this code looks much less than portable to me.
> 
>                       regards, tom lane
> 


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  [EMAIL PROTECTED]               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Reply via email to