Subject: Re: stdbool.h compatibility with gcc 2.x
To: None <>
From: Julio M. Merino Vidal <>
List: tech-userlevel
Date: 09/30/2005 16:58:35
On 9/30/05, James Chacon <> wrote:
> On Fri, Sep 30, 2005 at 04:51:54PM +0200, Julio M. Merino Vidal wrote:
> > Hi all,
> >
> > I've been noticed that we can't use stdbool.h in programs that form par=
> > of NetBSD because it is not provided by all ports (e.g., vax, which sti=
> > has an old gcc), thus breaking the build.
> >
> > I believe that having a boolean type available (and usable) could make
> > our code clearer in some circumstances.
> >
> > So, I'm wondering... could it be silly to provide a "fake" stdbool.h he=
> > that uses an integer type to define the boolean type in those platforms
> > that don't have it (i.e., HAVE_GCC3=3Dno)?  Should be trivial to do.
> >
> There's only 1 place in-tree right now I think that required stdbool.h
> and it was specifically patched for vax already.
> What else do we have that requires/needs stdbool now vs waiting for the
> next gcc update which will address vax?

Nothing I'm aware of (after the fix I just commited).  But it has happened =
me twice (wsmoused, mount_tmpfs) to add some code that later needs to
be "fixed" because it used stdbool.h.

Julio M. Merino Vidal <>
The NetBSD Project -