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

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "R, Rajesh (STSD)" <rajesh(dot)r2(at)hp(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [HACKERS] [PATCH] Better way to check for getaddrinfo function.
Date: 2006-01-24 09:15:42
Message-ID: 20060124091542.GA14849@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general 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(at)svana(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-01-24 09:16:55 Re: FATAL: terminating connection due to administrator
Previous Message Sander Steffann 2006-01-24 09:10:34 Re: RAID 5 and postgresql

Browse pgsql-hackers by date

  From Date Subject
Next Message Aftab Alam 2006-01-24 09:20:18 Re: Offer for PG Developers/Hackers
Previous Message R, Rajesh (STSD) 2006-01-24 09:03:13 Re: [HACKERS] [PATCH] Better way to check for getaddrinfo function.