Jesus Daniel Valencia Sanchez
valencia at cicese.mx
Thu Mar 27 18:06:50 PST 2003
On Fri, 28 Mar 2003, Giorgos Keramidas wrote:
> On 2003-03-27 10:05, Jesus Daniel Valencia Sanchez <valencia at 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.
ps. - have fun :D
More information about the freebsd-questions