| Summary: | <sys/resource.h> didn't include <sys/time.h>, needed for timeval | ||
|---|---|---|---|
| Product: | Base System | Reporter: | lrobb <lrobb> |
| Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
<<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 State Changed From-To: open->closed Garrett answered the problem . |
/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