[krbdev.mit.edu #2379] sane_hostname.c fails to compile on HP UX 10.20
Ken Raeburn via RT
rt-comment at krbdev.mit.edu
Fri Jul 16 17:55:52 EDT 2004
[DEEngert at anl.gov - Wed Mar 10 17:33:40 2004]:
> util/pty/sane_hostname.c failes to compile on a HP UX 10.20
> as h_errno is not defined.
>
> sane_hostname.c includes pty-int.h that includes netdb.h
>
> Later sane_hostname.c includes fake_addrinfo.h
> that defines _XOPEN_SOURCE_EXTENDED then includes netdb.h
> so as to get h_errno defined. But since netdb.h was already
> included the hack has no effect.
Doug, could you please see if the changes I just checked in on the trunk
fix this problem for you? I know port-sockets.h is including netdb.h,
but now it should define _XOPEN_SOURCE_EXTENDED like fake-addrinfo.h
used to, and pty-int.h includes port-sockets.h. If in fact that's the
first inclusion of netdb.h, I think it'll get the h_errno declaration.
More information about the krb5-bugs
mailing list