Re: pgsql: Define INADDR_NONE on Solaris when it's missing.
Magnus Hagander <magnus@hagander.net>
From: Magnus Hagander <magnus@hagander.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Date: 2010-01-28T15:53:44Z
Lists: pgsql-hackers
On Thu, Jan 28, 2010 at 16:46, Tom Lane <tgl@sss.pgh.pa.us> wrote: > mha@postgresql.org (Magnus Hagander) writes: >> Log Message: >> ----------- >> Define INADDR_NONE on Solaris when it's missing. Per a couple of buildfarm >> members complaining. > > This seems likely to break as much as it fixes, since there's no very > good reason to assume that whatever header should define INADDR_NONE > has been included before the os.h header file has been read. Hmm. Where would you suggest it goes? The addition of such a define is in a lot of places on the net as fixing just this issue, and was also recommended by Zdenek as the fix for Solaris. But I can agree it may be in the wrong place :-) > Possibly more to the point, where are we using INADDR_NONE anyway? In the RADIUS code. -- Magnus Hagander Me: http://www.hagander.net/ Work: http://www.redpill-linpro.com/