Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Sep 2001 16:10:13 -0500
From:      Mike Karels <karels@BSDI.COM>
To:        Bill Fenner <fenner@research.att.com>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Causing <netinet/in.h> to depend on <sys/socket.h> 
Message-ID:  <200109072110.f87LADX15133@redrock.eng.bsdi.com>
In-Reply-To: Your message of Fri, 07 Sep 2001 10:48:54 -0700. <200109071748.KAA21991@windsor.research.att.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Er, I think I take back my own objection.  IEEE Std 1003.1-200x says

> SYNOPSIS
>               #include <netinet/in.h>
> ...
>               Inclusion of the <netinet/in.h> header may also make
>               visible all symbols from <inttypes.h> and <sys/socket.h>.

I haven't seen that version of the networking stuff yet.  However, if
you are solving the problem I think you are, types like sa_family_t,
I can tell you what we do in BSD/OS: we created a <sys/sockettypes.h>,
and include it from both <sys/socket.h> and <netinet/in.h>.

Hope this helps,

		Mike

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




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