Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2000 17:11:10 -0700
From:      Wilbert de Graaf <wilbertdg@hetnet.nl>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        FreeBSD-hackers <FreeBSD-hackers@FreeBSD.ORG>
Subject:   Re: #include question: <netinet/in.h> requires <sys/socket.h>
Message-ID:  <396E5A9E.E7CD05F1@hetnet.nl>
References:  <095401bfec6f$495ba110$0a00a8c0@alias> <20000712221526.L25571@fw.wintelcom.net> <396E49D4.DBBA9B5C@hetnet.nl> <20000713160251.Z25571@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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).

- Wilbert


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?396E5A9E.E7CD05F1>