Subject: lib/2836: errno.h can't be compiled -traditional
To: None <gnats-bugs@gnats.netbsd.org>
From: John F. Woods <jfw@jfwhome.funhouse.com>
List: netbsd-bugs
Date: 10/11/1996 21:55:59
>Number: 2836
>Category: lib
>Synopsis: errno.h can't be compiled -traditional
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 11 19:05:00 1996
>Last-Modified:
>Originator: John F. Woods
>Organization:
Misanthropes-R-Us
>Release: 1.2_BETA
>Environment:
System: NetBSD jfwhome.funhouse.com 1.2 NetBSD 1.2 (JFW) #2: Tue Oct 1 00:30:36 EDT 1996 jfw@jfwhome.funhouse.com:/usr/src/sys/arch/i386/compile/JFW i386
>Description:
errno.h cannot be used with gcc -traditional because it uses const.
>How-To-Repeat:
echo '#include <errno.h>' > /tmp/t.c ; gcc -traditional /tmp/t.c
>Fix:
Other header files include <sys/cdefs.h> to paper over this. I don't
know if this is appropriate for errno.h, however.
>Audit-Trail:
>Unformatted: