Re: [HACKERS] [PATCH] Better way to check for getaddrinfo - Mailing list pgsql-general

From Tom Lane
Subject Re: [HACKERS] [PATCH] Better way to check for getaddrinfo
Date
Msg-id 23342.1138302410@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] [PATCH] Better way to check for getaddrinfo  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I have the answer.  Tru64 netdb.h has:

>     #if defined (_SOCKADDR_LEN) || defined (_XOPEN_SOURCE_EXTENDED)
>     #define getaddrinfo ngetaddrinfo
>     #else
>     #define getaddrinfo ogetaddrinfo
>     #endif

Seems like the same method we use for testing finite() and other
possible-macros would handle this, then.

            regards, tom lane

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Arrays
Next
From: Tom Lane
Date:
Subject: Re: How to implement nested transactions