AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3

Поиск
Список
Период
Сортировка
От Albert Chin
Тема AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3
Дата
Msg-id 20060219234336.GD93931@mail1.thewrittenword.com
обсуждение исходный текст
Ответы Re: AC_REPLACE_FUNCS([getaddrinfo]) in 8.1.3  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
AC_REPLACE_FUNCS([getaddrinfo]) won't correctly detect getaddrinfo on
Tru64 UNIX because the function doesn't exist under that name in libc.
From <netdb.h>: #if defined (_SOCKADDR_LEN) || defined (_XOPEN_SOURCE_EXTENDED) #define getaddrinfo ngetaddrinfo #else
#definegetaddrinfo ogetaddrinfo #endif
 

The original code in 8.1.1 was: AC_MSG_CHECKING([for getaddrinfo by including <netdb.h>]) AC_TRY_LINK([#include
<sys/types.h>
#include <sys/socket.h>
#include <netdb.h>],   [getaddrinfo(NULL, NULL, NULL, NULL);],   [AC_MSG_RESULT([yes])   AC_DEFINE(HAVE_GETADDRINFO, 1,
   [Define to 1 if you have the `getaddrinfo' function.])],   [AC_MSG_RESULT([no])   AC_LIBOBJ(getaddrinfo)])
 

So, what's the best way to merge the two? If getaddrinfo() is borked
on Windows, how about AC_TRY_RUN to test it out?

-- 
albert chin (china@thewrittenword.com)


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Douglas McNaught
Дата:
Сообщение: Re: postgresql query string length limit
Следующее
От: "Satoshi Nagayasu"
Дата:
Сообщение: Re: Prepared Xacts and Vacuum question