Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function.
Date
Msg-id 28267.1137510215@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function.  ("R, Rajesh (STSD)" <rajesh.r2@hp.com>)
List pgsql-hackers
"R, Rajesh (STSD)" <rajesh.r2@hp.com> writes:
> But the bottomline is the default test does not include <netdb.h> in the
> test code.

That's odd.  Is getaddrinfo a macro on Tru64?  If so, the appropriate
patch would probably make the test look more like the tests for finite()
and friends:

dnl Cannot use AC_CHECK_FUNC because finite may be a macro
AC_MSG_CHECKING(for finite)
AC_TRY_LINK([
#include <math.h>
double glob_double;
],           [return finite(glob_double) ? 0 : 1;],           [AC_DEFINE(HAVE_FINITE, 1, [Define to 1 if you have
finite().])
AC_MSG_RESULT(yes)],           [AC_MSG_RESULT(no)])
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Large Scale Aggregation (HashAgg Enhancement)
Next
From: Tom Lane
Date:
Subject: Re: [pgsql-www] source documentation tool doxygen