Subject: Re: inet_makeaddr(), u_long, _POSIX_SOURCE macro
To: Jaromir Dolecek <>
From: Jason R Thorpe <>
List: tech-kern
Date: 01/06/2003 08:09:09
On Mon, Jan 06, 2003 at 10:37:21AM +0100, Jaromir Dolecek wrote:

 > Would it be right to change the function to use in_addr_t instead
 > then?

I think it would, yes.  But in_addr_t needs to get special handling
like socklen_t has, otherwise we have to pull too many namespace-invasive
headers to get the definition.

 > inet_makeaddr() is not guarded by _POSIX_SOURCE, so the compile
 > fails even when the program doesn't use inet_makeaddr().

Right, the header it is declared in is not a POSIX header, AFAIK.

        -- Jason R. Thorpe <>