Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2001 12:31:11 -0400 (EDT)
From:      Adrian Filipi-Martin <adrian@ubergeeks.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/29996: stdbool.h is not installed
Message-ID:  <200108231631.f7NGVBf01006@atf.intranet>

next in thread | raw e-mail | index | archive | help

>Number:         29996
>Category:       misc
>Synopsis:       stdbool.h is not installed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 23 09:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Adrian Filipi-Martin
>Release:        FreeBSD 4.4-PRERELEASE i386
>Organization:
Ubergeeks Consulting
>Environment:
System: FreeBSD atf.intranet 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #21: Thu Aug 9 17:40:33 EDT 2001 root@atf.intranet:/home/obj/usr/src/sys/ATF i386

>Description:

	stdbool.h is a C99 standard header that is not available
	under FreeBSD.  There is a version available as part of
	gcc, but it is not installed.  This has caused us minor
	portability annoyances as we port our software to FreeBSD.

>How-To-Repeat:

	Try compiling any C code that needs stdbool.h.

>Fix:

	An easy one would be to start installing the stdbool.h in
	contrib/gcc/ginclude/stdbool.h.  however, that's not the
	best version of stdbool.h available.  The one that was
	indpendently written for OpenBSD includes '#define bool
	_Bool', which is required according to the C99 specs.
	Furthermore, the gcc version doesn't define _Bool at all
	which is not yet a builtin type in gcc 2.95.3.

	I'd recommend simply importing the OpenBSD stdbool.h.

>Release-Note:
>Audit-Trail:
>Unformatted:

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




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