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

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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "R, Rajesh (STSD)" <rajesh(dot)r2(at)hp(dot)com>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] [GENERAL] [PATCH] Better way to check for getaddrinfo
Date: 2006-01-26 22:09:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-hackerspgsql-patches
Tom Lane wrote:
> 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.

OK, patch attached.  I did the macro test you suggested.  Would someone
test this on Tru64?

  Bruce Momjian                        |
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-hackers by date

Next:From: Jim C. NasbyDate: 2006-01-26 23:00:08
Subject: Re: Adding a --quiet option to initdb
Previous:From: Bruce MomjianDate: 2006-01-26 22:04:50
Subject: Re: Cleaning up the INET/CIDR mess

pgsql-patches by date

Next:From: Bruce MomjianDate: 2006-01-26 22:22:57
Subject: Re: pg_restore COPY error handling
Previous:From: Bruce MomjianDate: 2006-01-26 19:24:55
Subject: Re: BUG #2195: log_min_messages crash server when in DEBUG3 to

pgsql-general by date

Next:From: Tom LaneDate: 2006-01-26 22:19:20
Subject: Re: "xmin" system column
Previous:From: Eric B. RidgeDate: 2006-01-26 22:07:39
Subject: Re: "xmin" system column

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