Subject: lib/20472: vis.h does not include stdlib.h
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Benjamin.Wong@cc.gatech.edu>
List: netbsd-bugs
Date: 02/23/2003 11:17:03
>Number: 20472
>Category: lib
>Synopsis: vis.h does not include stdlib.h
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 23 08:19:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Ben Wong
>Release: NetBSD 1.6_STABLE
>Organization:
Georgia Institute of Technology
>Environment:
System: NetBSD ursula.wongs.net 1.6_STABLE NetBSD 1.6_STABLE (URSULA) #1: Sat Jan 18 00:30:41 EST 2003 root@ursula.wongs.net:/usr/src/sys/arch/i386/compile/URSULA i386
Architecture: i386
Machine: i386
>Description:
/usr/include/vis.h uses size_t but does not define it.
>How-To-Repeat:
$ cat bar.c
#include <vis.h>
main(){}
$ gcc bar.c
In file included from bar.c:1:
/usr/include/vis.h:84: parse error before `size_t'
/usr/include/vis.h:85: parse error before `size_t'
Compilation exited abnormally with code 1 at Sun Feb 23 11:04:39
>Fix:
Add the following lines to vis.h:
#include <machine/ansi.h>
#ifdef _BSD_SIZE_T_
typedef _BSD_SIZE_T_ size_t;
#undef _BSD_SIZE_T_
#endif
>Release-Note:
>Audit-Trail:
>Unformatted: