Subject: lib/20472: vis.h does not include stdlib.h
To: None <>
From: None <>
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
>Originator:     Ben Wong
>Release:        NetBSD 1.6_STABLE
Georgia Institute of Technology
System: NetBSD 1.6_STABLE NetBSD 1.6_STABLE (URSULA) #1: Sat Jan 18 00:30:41 EST 2003 i386
Architecture: i386
Machine: i386
/usr/include/vis.h uses size_t but does not define it.


    $ cat bar.c
    #include <vis.h>

    $ 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

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_