From darius@holly.dons.net.au  Sun Feb 15 17:13:30 1998
Received: from holly.dons.net.au (daniel.lnk.telstra.net [139.130.137.70])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA29455
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 15 Feb 1998 17:13:25 -0800 (PST)
          (envelope-from darius@holly.dons.net.au)
Received: (from darius@localhost)
	by holly.dons.net.au (8.8.8/8.8.5) id LAA01029;
	Mon, 16 Feb 1998 11:45:54 +1030 (CST)
Message-Id: <199802160115.LAA01029@holly.dons.net.au>
Date: Mon, 16 Feb 1998 11:45:54 +1030 (CST)
From: "Daniel J. O'Connor" <darius@holly.dons.net.au>
Reply-To: darius@holly.dons.net.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: sys/resources.h doesn't include sys/time.h
X-Send-Pr-Version: 3.2

>Number:         5758
>Category:       bin
>Synopsis:       sys/resources.h doesn't include sys/time.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 15 17:20:00 PST 1998
>Closed-Date:    Mon Aug 21 06:00:50 PDT 2000
>Last-Modified:  Mon Aug 21 06:02:34 PDT 2000
>Originator:     Daniel J. O'Connor
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:



>Description:

sys/resource.h doesn't include sys/time.h so struct timeval isn't
available
(Its just annoying really :)

>How-To-Repeat:

Do #include <sys/resource.h> without doing #include <sys/time.h> is a
C program

>Fix:
	
Add #include <sys/time.h> in sys/resource.h

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Mon Aug 21 06:00:50 PDT 2000 
State-Changed-Why:  
The man pages for getrusage/getlimit and others specify that 
one has to: 
#include <sys/types.h> 
#include <sys/time.h> 
#include <sys/resource.h> 


http://www.freebsd.org/cgi/query-pr.cgi?pr=5758 
>Unformatted:
