Subject: Re: pkg/33036: p5-pkgsrc-Dewey-1.0 uses warn() from err.h, even if
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Stuart Shelton <stuart@zeus.com>
List: pkgsrc-bugs
Date: 03/10/2006 13:50:02
The following reply was made to PR pkg/33036; it has been noted by GNATS.
From: Stuart Shelton <stuart@zeus.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/33036: p5-pkgsrc-Dewey-1.0 uses warn() from err.h, even if
not included
Date: Fri, 10 Mar 2006 13:42:32 +0000
Although, or course, including err.h from nbcompat also fails because
the C library doesn't include the warn() function that the header
prototypes.
Reimplementing warn() (and vwarn()) within defs.h is almost trivial
(although I can't see any way to find the program name) - I guess this
should be conditionally performed depending on the state of
HAVE_ERR_H...