Bug 13458

Summary: <sys/resource.h> didn't include <sys/time.h>, needed for timeval
Product: Base System Reporter: lrobb <lrobb>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description lrobb 1999-08-29 19:50:01 UTC
/usr/include/sys/resource.h  ( <sys/resource.h> )
uses struct timeval, but doesn't #include <sys/time.h>, where 
timeval is defined.

Fix: 

in <sys/resource.h> #include <sys/time.h>
How-To-Repeat: #include <sys/resource.h>
main() {
  return 0;
}

-- won't compile
Comment 1 Garrett A. Wollman 1999-08-29 20:37:15 UTC
<<On Sun, 29 Aug 1999 11:47:50 -0700 (PDT), lrobb@iname.com said:

> /usr/include/sys/resource.h  ( <sys/resource.h> )
> uses struct timeval, but doesn't #include <sys/time.h>, where 
> timeval is defined.

<sys/time.h> is a documented prerequisite of <sys/resource.h>; see
getrlimit(2).

Next question....

-GAWollman
Comment 2 Nick Hibma freebsd_committer freebsd_triage 1999-08-30 07:45:31 UTC
State Changed
From-To: open->closed

Garrett answered the problem 
.