From nobody@FreeBSD.ORG Sun Aug 29 11:48:16 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id AD58314CFC; Sun, 29 Aug 1999 11:47:50 -0700 (PDT)
Message-Id: <19990829184750.AD58314CFC@hub.freebsd.org>
Date: Sun, 29 Aug 1999 11:47:50 -0700 (PDT)
From: lrobb@iname.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: <sys/resource.h> didn't include <sys/time.h>, needed for timeval
X-Send-Pr-Version: www-1.0

>Number:         13458
>Category:       misc
>Synopsis:       <sys/resource.h> didn't include <sys/time.h>, needed for timeval
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 29 11:50:01 PDT 1999
>Closed-Date:    Sun Aug 29 23:45:31 PDT 1999
>Last-Modified:  Sun Aug 29 23:46:05 PDT 1999
>Originator:     Lee Robb
>Release:        3.2
>Organization:
>Environment:
FreeBSD 3.2 -RELEASE
>Description:
/usr/include/sys/resource.h  ( <sys/resource.h> )
uses struct timeval, but doesn't #include <sys/time.h>, where 
timeval is defined.
>How-To-Repeat:
#include <sys/resource.h>
main() {
  return 0;
}

-- won't compile
>Fix:
in <sys/resource.h> #include <sys/time.h>

>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: lrobb@iname.com
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: misc/13458: <sys/resource.h> didn't include <sys/time.h>, needed for timeval
Date: Sun, 29 Aug 1999 15:37:15 -0400 (EDT)

 <<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 
State-Changed-By: n_hibma 
State-Changed-When: Sun Aug 29 23:45:31 PDT 1999 
State-Changed-Why:  
Garrett answered the problem 
. 
>Unformatted:
