Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function.
Дата
Msg-id 28267.1137510215@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function.  ("R, Rajesh (STSD)" <rajesh.r2@hp.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Large Scale Aggregation (HashAgg Enhancement)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-www] source documentation tool doxygen