* Wilbert de Graaf <[EMAIL PROTECTED]> [000713 17:11] wrote:
>
> Hi Alfred,
>
> > you might as well unconditionally include sys/socket.h and let it's
> > internal #ifndef take care of that problem.
>
> you're right and i'll change it
>
> > I'm not sure why you don't just make your own new header file for
> > this struct unless you're adding to an existing structure in
> > socket.h, even if you are you can put whatever it is that you added
> > to netinet/in.h into a seperate header or sys/socket.h itself.
>
> The reason is that the structures, socket options have to be in
> whenever <netinet/in.h> is included, since that's what's specified by
> that draft (which is good for portable code).
So effectively the standard mandates this? You might as well get rid
of netinet/in.h then and include it all in sys/socket.h... or...
wrap your stuff in sys/socket.h like so:
#ifdef _NETINET_IN_H_
/* stuff that depends on netinet/in.h */
#endif
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message