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

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function.
Дата
Msg-id 20060124091542.GA14849@svana.org
обсуждение исходный текст
Ответ на Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function.  ("R, Rajesh (STSD)" <rajesh.r2@hp.com>)
Список pgsql-hackers
On Tue, Jan 24, 2006 at 02:33:13PM +0530, R, Rajesh (STSD) wrote:
> Its not a macro.
> I meant that the code generated by AC_REPLACE_FUNCS([getaddrinfo]) by
> configure.in for "configure"
> does not have "#include <netdb.h>". Hence function is not
> detected(unresolved getaddrinfo).
> Hence  I thought AC_TRY_LINK could give test program instead of
> AC_REPLACE_FUNCS taking one.

But if it isn't a macro, why do you need the header file? In C it's
perfectly legal to declare the symbol yourself and try to link and it
should work *unless* it's normally a macro.

We're still missing some necessary understanding here...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

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

Предыдущее
От: "R, Rajesh (STSD)"
Дата:
Сообщение: Re: [GENERAL] [PATCH] Better way to check for getaddrinfo function.
Следующее
От: "Aftab Alam"
Дата:
Сообщение: Re: Offer for PG Developers/Hackers