Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
Дата
Msg-id 9205.1123535171@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST  ("Logan O'Sullivan Bruns" <logan@gedanken.org>)
Список 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 по дате отправления:

Предыдущее
От: "Logan O'Sullivan Bruns"
Дата:
Сообщение: Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST
Следующее
От: "Mohan, Ross"
Дата:
Сообщение: Re: PostgreSQL 8.0.3, AIX 5.1, getaddrinfo, AI_NUMERICHOST