pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/33037: nbcompat/err.h header file incomplete?



>Number:         33037
>Category:       pkg
>Synopsis:       nbcompat/err.h header file incomplete?
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 09 11:10:00 +0000 2006
>Originator:     Stuart Shelton
>Release:        
>Organization:
>Environment:
>Description:

libnbcompat-20041024's err.h library seems, so far as I can tell, to be 
incomplete: It uses the __P macro and va_list without including the relevent 
headers.

I'm not a C expert, so I might have misunderstood how this header is supposed 
to be used ... but shouldn't the following change be applied:

 #if HAVE_ERR_H
 # include <err.h>
 #endif

+#ifndef _NBCOMPAT_SYS_CDEFS_H_
+# include <nbcompat/cdefs.h>
+#endif
+
+#ifndef __STDARG_H__
+# include <stdarg.h>
+#endif
+
 #if !HAVE_ERR
 void    err __P((int, const char *, ...));
 void    errx __P((int, const char *, ...));
 void    verr __P((int, const char *, va_list));

>How-To-Repeat:

>Fix:




Home | Main Index | Thread Index | Old Index