Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 02:15:24 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Doug Barton <DougB@FreeBSD.org>
Cc:        Bill Fenner <fenner@research.att.com>, <current@FreeBSD.org>
Subject:   Re: Broken (?) unistd.h
Message-ID:  <20020228021250.Y49219-100000@gamplex.bde.org>
In-Reply-To: <20020227014559.O31146-100000@master.gorean.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 Feb 2002, Doug Barton wrote:

> On Wed, 27 Feb 2002, Bruce Evans wrote:
> > >From style(9):
> >
> >      Kernel include files (i.e. sys/*.h) come first; normally, include
> >      <sys/types.h> OR <sys/param.h>, but not both.  <sys/types.h> includes
> >      <sys/cdefs.h>, and it is okay to depend on that.
>
> Based on a suggestion from someone else, I actually generated the same
> patch that Bill did. Without including sys/param.h, there is no definition
> of __FreeBSD_version at this point in the process, so the test always
> fails. If there is a more correct way to test, I'll be glad to use it,
> otherwise I'll have to go with what works.

Include the necessary header, but not both.

Bruce


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




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