Re: [PORTS] PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST

Tom Lane <[email protected]>
Newsgroups gmane.comp.db.postgresql.ports
Message-ID <[email protected]>
"Logan O'Sullivan Bruns" <[email protected]> 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

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.