Bug 29996

Summary: stdbool.h is not installed
Product: Base System Reporter: adrian <adrian>
Component: miscAssignee: Jeroen Ruigrok van der Werven <asmodai>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-PRERELEASE   
Hardware: Any   
OS: Any   

Description adrian 2001-08-23 17:40:01 UTC
	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.

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.
How-To-Repeat: 
	Try compiling any C code that needs stdbool.h.
Comment 1 dd freebsd_committer freebsd_triage 2001-08-23 22:31:01 UTC
Responsible Changed
From-To: freebsd-bugs->asmodai

asmodai imported stdbool.h into -current.  Perhaps he could MFC it after 4.4?
Comment 2 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2001-11-15 21:01:40 UTC
State Changed
From-To: open->closed

MFC'd to STABLE.