From: Tom Lane <tgl@sss.pgh.pa.us>
To: Logan O'Sullivan Bruns <logan@gedanken.org>
Cc: Mohan, Ross <RMohan@arbinet.com>
Cc: pgsql-ports@postgresql.org
Subject: Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
Date: Mon, 08 Aug 2005 17:06:11 -0400
Message-ID: <9205.1123535171@sss.pgh.pa.us> (raw)
In-Reply-To: <20050808200937.GV6200@pravda.gedanken.org>
References: <CC74E7E10A8A054798B6611BD1FEF4D30796712E@vamail01.thexchange.com>
<20050808200937.GV6200@pravda.gedanken.org>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-ports@postgresql.org
Cc: tgl@sss.pgh.pa.us, logan@gedanken.org, RMohan@arbinet.com
Subject: Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
In-Reply-To: <9205.1123535171@sss.pgh.pa.us>
References: <CC74E7E10A8A054798B6611BD1FEF4D30796712E@vamail01.thexchange.com> <20050808200937.GV6200@pravda.gedanken.org> <9205.1123535171@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox