"Logan O'Sullivan Bruns" <logan@gedanken.org> writes:
> I only have access to AIX5.1. On 5.1 the relevant prototype and
> defines are in netdb.h.
> The man page for has:
> struct addrinfo {
> int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
> Note the absence of AI_NUMERICHOST. It isn't mentioned anywhere in the
> man page but it is present in the header.
Defined how?
We do have
#ifndef AI_NUMERICHOST
#define AI_NUMERICHOST 0
#endif
in our own code, so we should do the right thing on platforms that don't
define the symbol. If AIX 5.1 defines the symbol and then chokes when
you use it, that's a bug to take up with IBM, not us.
regards, tom lane