Subject: bin/2233: yacc's skeleton.c declares getenv() wrong for C++
To: None <gnats-bugs@NetBSD.ORG>
From: None <henric@zoom.com>
List: netbsd-bugs
Date: 03/17/1996 11:47:02
>Number:         2233
>Category:       bin
>Synopsis:       yacc's skeleton.c declares getenv() wrong for C++
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 17 15:05:03 1996
>Last-Modified:
>Originator:     Henric Jungheim
>Organization:
-------- Henric Jungheim  -------------------  henric@zoom.com --------
>Release:        sup'ed as of March 16 <NetBSD-current source date>
>Environment:
	
System: NetBSD henric-ppp.zoom.com 1.1A NetBSD 1.1A (HENRIC) #57: Sun Mar 10 17:08:32 PST 1996 henric@henric-ppp.zoom.com:/usr/src/sys/arch/amiga/compile/HENRIC amiga
All but the kernel from March 16 sup.

>Description:
Line 96 of src/usr.bin/yacc/skeleton.c declares "extern char* getenv();".
This does not work if the parser is compiled with C++.

>How-To-Repeat:
	
>Fix:
Line 96 of src/usr.bin/yacc/skeleton.c shoould read "extern char*
getenv(const char*);".  Or skeleton.c should #include <stdlib.h>.

>Audit-Trail:
>Unformatted: