Bug 973 - 2.1's stdlib.h uses size_t but doesn't #include sys/types.h
Summary: 2.1's stdlib.h uses size_t but doesn't #include sys/types.h
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 2.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-01-27 20:10 UTC by Tim Singletary
Modified: 1996-01-28 00:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Singletary 1996-01-27 20:10:02 UTC
stdlib.h references size_t, yet doesn't define this name.  stdlib.h
should probably #include sys/types.h

Fix: 

stdlib.h should #include sys/types.h
Comment 1 Bruce Evans 1996-01-27 21:59:44 UTC
>>Description:
>stdlib.h references size_t, yet doesn't define this name.  stdlib.h

No, size_t is declared on line 42 of stdlib.h if it isn't already declared.

>>Fix:
>stdlib.h should #include sys/types.h

No, sys/types.h declares many other things that aren't supposed to be
declared by stdlib.h.

Bruce
Comment 2 Joerg Wunsch 1996-01-27 22:14:53 UTC
As Tim Singletary wrote:
> 
> stdlib.h references size_t, yet doesn't define this name.

It does, via _BSD_SIZE_T and <machine/ansi.h>.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
Comment 3 Joerg Wunsch freebsd_committer freebsd_triage 1996-01-28 00:19:43 UTC
State Changed
From-To: open->closed

Looks like false alarm.