| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "R, Rajesh (STSD)" <rajesh(dot)r2(at)hp(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function. |
| Date: | 2006-01-17 15:03:35 |
| Message-ID: | 28267.1137510215@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
"R, Rajesh (STSD)" <rajesh(dot)r2(at)hp(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-01-17 15:27:31 | Re: Huge number of disk writes after migration to 8.1 |
| Previous Message | James Robinson | 2006-01-17 14:51:42 | Re: A tale of two similar databases |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-01-17 15:18:23 | Re: [HACKERS] source documentation tool doxygen |
| Previous Message | Tom Lane | 2006-01-17 14:52:10 | Re: Large Scale Aggregation (HashAgg Enhancement) |