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: 200601262209.k0QM9YJ11164@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-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 | http://candle.pha.pa.us
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

Attachment Content-Type Size
unknown_filename text/plain 6.6 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-01-26 22:19:20 Re: "xmin" system column
Previous Message Eric B. Ridge 2006-01-26 22:07:39 Re: "xmin" system column

Browse pgsql-hackers by date

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

Browse pgsql-patches by date

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