Date: Sat, 8 Apr 2000 09:10:03 -0700 (PDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: freebsd-bugs@FreeBSD.org Subject: bin/17864: PATCH: sys/resource.h needs sys/time.h for struct timeval Message-ID: <200004081610.JAA50633@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/17864; it has been noted by GNATS. From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: tim@mysql.com Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/17864: PATCH: sys/resource.h needs sys/time.h for struct timeval Date: Sat, 8 Apr 2000 12:01:11 -0400 (EDT) <<On 8 Apr 2000 15:24:48 -0000, "Thimble Smith" <tim@mysql.com> said: > Programs that include <sys/resource.h> without including <sys/time.h> > first will not compile, because struct timeval is not defined. This > could be a bug in the program instead of in FreeBSD. If so, go ahead > and tell me so and I'll bug the program's authors. <sys/time.h> is a documented prerequisite of <sys/resource.h>: GETRUSAGE(2) FreeBSD System Calls Manual GETRUSAGE(2) NAME getrusage - get information about resource utilization SYNOPSIS #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> GETRLIMIT(2) FreeBSD System Calls Manual GETRLIMIT(2) NAME getrlimit, setrlimit - control maximum system resource consumption SYNOPSIS #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004081610.JAA50633>