From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-committers <pgsql-committers(at)postgresql(dot)org> |
Subject: | Re: pgsql: Define INADDR_NONE on Solaris when it's missing. |
Date: | 2010-01-28 16:09:35 |
Message-ID: | 9837222c1001280809i23b76451r8877d2bf7c71d76c@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On Thu, Jan 28, 2010 at 17:04, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Magnus Hagander <magnus(at)hagander(dot)net> writes:
>> On Thu, Jan 28, 2010 at 16:46, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> Possibly more to the point, where are we using INADDR_NONE anyway?
>
>> In the RADIUS code.
>
> Oh, that's why it isn't in my tree and has zero portability track record ...
>
> I think what this shows is we should look for a way to avoid using
> INADDR_NONE. What's your grounds for believing it's portable at all?
> In the Single Unix Spec I only see INADDR_ANY and INADDR_BROADCAST
> defined.
Um, I don't think I have any specific grounds for it, other than
having seen it in a lot of other software :-)
From some more googling
(http://www.opengroup.org/onlinepubs/000095399/functions/inet_addr.html),
it says it will return (in_addr_t)(-1), though, so maybe we should
just move that #ifdef out to some global place?
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-01-28 16:16:06 | Re: pgsql: Define INADDR_NONE on Solaris when it's missing. |
Previous Message | Tom Lane | 2010-01-28 16:04:37 | Re: pgsql: Define INADDR_NONE on Solaris when it's missing. |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-01-28 16:16:06 | Re: pgsql: Define INADDR_NONE on Solaris when it's missing. |
Previous Message | Tom Lane | 2010-01-28 16:04:37 | Re: pgsql: Define INADDR_NONE on Solaris when it's missing. |