Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Logan O'Sullivan Bruns" <logan(at)gedanken(dot)org>
Cc: "Mohan, Ross" <RMohan(at)arbinet(dot)com>, pgsql-ports(at)postgresql(dot)org
Subject: Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
Date: 2005-08-08 21:06:11
Message-ID: 9205.1123535171@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

"Logan O'Sullivan Bruns" <logan(at)gedanken(dot)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

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Mohan, Ross 2005-08-08 22:04:24 Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
Previous Message Logan O'Sullivan Bruns 2005-08-08 20:09:37 Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST