From owner-freebsd-current@FreeBSD.ORG Thu Aug 7 07:33:37 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AF9937B401 for ; Thu, 7 Aug 2003 07:33:37 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 1235E43F3F for ; Thu, 7 Aug 2003 07:33:37 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 75832 invoked by uid 1000); 7 Aug 2003 14:33:37 -0000 Date: Thu, 7 Aug 2003 07:33:37 -0700 (PDT) From: Nate Lawson To: current@freebsd.org Message-ID: <20030807072635.G75796@root.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: including ctype.h? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 14:33:37 -0000 The header for acpi (acfreebsd.h) defines "strupr" which is just toupper() in a loop. For the _KERNEL case, we include sys/ctype.h. For the !_KERNEL case, I added #include but this results in an error while building biosacpi.c in sys/boot/libi386. I believe this is because the boot blocks are built using boot/libstand and it defines its own toupper(). However, other user programs that use strupr() (the ACPI user utilities) get a warning if ctype.h is not included. What's the best way to proceed? -Nate