From owner-freebsd-bugs Thu Aug 23 9:40:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1A83037B40C for ; Thu, 23 Aug 2001 09:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7NGe2j11522; Thu, 23 Aug 2001 09:40:02 -0700 (PDT) (envelope-from gnats) Received: from tovaris.com (fw-an0.tovaris.com [209.145.84.34]) by hub.freebsd.org (Postfix) with ESMTP id 5399537B406 for ; Thu, 23 Aug 2001 09:31:15 -0700 (PDT) (envelope-from adrian@mail.tovaris.com) Received: (qmail 22260 invoked by uid 0); 23 Aug 2001 15:31:51 -0000 Received: from mail.tovaris.com (HELO atf.intranet) (209.145.84.38) by oldmail.intranet with DES-CBC3-SHA encrypted SMTP; 23 Aug 2001 15:31:51 -0000 Received: (from adrian@localhost) by atf.intranet (8.11.5/8.11.5) id f7NGVBf01006; Thu, 23 Aug 2001 12:31:11 -0400 (EDT) (envelope-from adrian) Message-Id: <200108231631.f7NGVBf01006@atf.intranet> Date: Thu, 23 Aug 2001 12:31:11 -0400 (EDT) From: Adrian Filipi-Martin Reply-To: Adrian Filipi-Martin To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: misc/29996: stdbool.h is not installed Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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