Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2003 00:42:37 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Jesus Daniel Valencia Sanchez <valencia@cicese.mx>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sockets
Message-ID:  <20030327224237.GC790@gothmog.gr>
In-Reply-To: <Pine.SUN.3.91.1030327100322.3279B-100000@matrix>
References:  <20030326222537.GB19762@gothmog.gr> <Pine.SUN.3.91.1030327100322.3279B-100000@matrix>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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