Date: Thu, 27 Mar 2003 18:06:36 -0800 (PST) From: Jesus Daniel Valencia Sanchez <valencia@cicese.mx> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: freebsd-questions@freebsd.org Subject: Re: sockets Message-ID: <Pine.SUN.3.91.1030327175918.15674A-100000@matrix> In-Reply-To: <20030327224237.GC790@gothmog.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 Mar 2003, Giorgos Keramidas wrote: > On 2003-03-27 10:05, Jesus Daniel Valencia Sanchez <valencia@cicese.mx> wrote: > > On Thu, 27 Mar 2003, Giorgos Keramidas wrote: > > > Make sure you include <sys/types.h> before <sys/socket.h>. > > > > Hello > > thank you very much... that was it. > > > > i wonder why didn't they #include <sys/types.h> inside sockets.h if it was > > needed. > > Intentionally. To avoid namespace pollution that this would cause, by > bringing in all the data types that sys/types.h and any header that > sys/type.h would suddenly want to ``automagically'' include. > > But if anyways it will be needed, the only difference will be that one will include two files instead of one always. Thank you. Daniel Valencia ps. - have fun :D
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.1030327175918.15674A-100000>