NetBSD-Bugs archive

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

lib/46492: term.h is missing cdefs.h



        Note: There was a bad value `' for the field `Confidential'.
        It was set to the default value of `yes'.

>Number:         46492
>Category:       lib
>Synopsis:       term.h is missing cdefs.h
>Confidential:   yes
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 28 23:55:00 +0000 2012
>Originator:     dholland%eecs.harvard.edu@localhost
>Release:        NetBSD 6.99.3 (20120227), affects -6 also
>Organization:
   - David A. Holland / dholland%eecs.harvard.edu@localhost
>Environment:
System: NetBSD macaran 6.99.3 NetBSD 6.99.3 (MACARAN) #11: Mon Feb 27 17:12:40 
EST 2012 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:

term.h uses __BEGIN_DECLS without including cdefs.h, and therefore
doesn't build if used alone.

>How-To-Repeat:

% cat blah.c 
#include <term.h>
% gcc -c blah.c 
In file included from blah.c:1:0:
/usr/include/term.h:1465:1: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'extern'
Exit 1
% 

>Fix:

obvious



Home | Main Index | Thread Index | Old Index