Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST - Mailing list pgsql-ports

From Tom Lane
Subject Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
Date
Msg-id 9205.1123535171@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST  ("Logan O'Sullivan Bruns" <logan@gedanken.org>)
List pgsql-ports
"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

pgsql-ports by date:

Previous
From: "Logan O'Sullivan Bruns"
Date:
Subject: Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
Next
From: "Mohan, Ross"
Date:
Subject: Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST