Skip site navigation (1) Skip section navigation (2)

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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "R, Rajesh (STSD)" <rajesh(dot)r2(at)hp(dot)com>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-hackers(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [HACKERS] [PATCH] Better way to check for getaddrinfo
Date: 2006-01-26 19:06:50
Message-ID: 23342.1138302410@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-hackerspgsql-patches
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I have the answer.  Tru64 netdb.h has:

> 	#if defined (_SOCKADDR_LEN) || defined (_XOPEN_SOURCE_EXTENDED)
> 	#define getaddrinfo ngetaddrinfo
> 	#else
> 	#define getaddrinfo ogetaddrinfo
> 	#endif

Seems like the same method we use for testing finite() and other
possible-macros would handle this, then.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Oisin GlynnDate: 2006-01-26 19:10:45
Subject: VACUUM Question
Previous:From: Bruce MomjianDate: 2006-01-26 18:49:34
Subject: Re: [HACKERS] [PATCH] Better way to check for getaddrinfo

pgsql-patches by date

Next:From: Tom LaneDate: 2006-01-26 19:09:36
Subject: Re: BUG #2195: log_min_messages crash server when in DEBUG3 to
Previous:From: Bruce MomjianDate: 2006-01-26 18:55:17
Subject: Re: BUG #2195: log_min_messages crash server when in DEBUG3 to

pgsql-general by date

Next:From: Oisin GlynnDate: 2006-01-26 19:10:45
Subject: VACUUM Question
Previous:From: Karsten HilbertDate: 2006-01-26 19:00:26
Subject: Re: Arrays

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group