Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2001 23:14:27 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Bill Fenner <fenner@research.att.com>
Cc:        <ticso@mail.cicely.de>, <arch@FreeBSD.ORG>
Subject:   Re: Causing <netinet/in.h> to depend on <sys/socket.h>
Message-ID:  <20010911231012.Q3651-100000@delplex.bde.org>
In-Reply-To: <200109101442.HAA17411@windsor.research.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 Sep 2001, Bill Fenner wrote:

> >If it is defined as protocol independend it doesn't belong into a
> >protocol dependend header.
> >E.g. I don't want to include netinet/in.h in an IPv6 only application.
>
> Tough.  <netinet6/in6.h> is an implementation artifact; the standard
> place to get IPv6-related stuff (e.g. sockaddr_in6) is <netinet/in.h> .

This place will also be Standard according to POSIX.1-200x drafts.

Please make it an #error to #include headers that are artifacts of the
implementation in userland.

Bruce


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?20010911231012.Q3651-100000>