Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Aug 2003 11:08:43 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Nate Lawson <nate@root.org>
Cc:        current@freebsd.org
Subject:   RE: including ctype.h?
Message-ID:  <XFMail.20030807110843.jhb@FreeBSD.org>
In-Reply-To: <20030807072635.G75796@root.org>

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

On 07-Aug-2003 Nate Lawson wrote:
> 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 <ctype.h> 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?

I would just have the userland programs include ctype.h.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/



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