Date: Tue, 29 Jun 1999 13:30:02 -0700 (PDT) From: Chris Piazza <cpiazza@home.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/12452: Missing #include <sys/time.h> in <sys/resource.h> (Patch included) Message-ID: <199906292030.NAA30644@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/12452; it has been noted by GNATS.
From: Chris Piazza <cpiazza@home.net>
To: k.stevenson@louisville.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/12452: Missing #include <sys/time.h> in <sys/resource.h> (Patch included)
Date: Tue, 29 Jun 1999 13:23:22 -0700
On Tue, Jun 29, 1999 at 02:46:49PM -0400, k.stevenson@louisville.edu wrote:
>
> /usr/include/sys/resource.h uses 'struct timeval' in the definition of
> struct rusage. struct timeval is defined in /usr/include/sys/time.h,
> but <sys/time.h> is not included in the <sys/resource.h> header file.
>
> The log message from version 1.8 of /usr/include/sys/resource.h mentions
> that <sys/time.h> is a prerequisite, but that doesn't seem to be documented
> elsewhere.
man 2 getpriority:
NAME
getpriority, setpriority - get/set program scheduling priority
SYNOPSIS
#include <sys/time.h>
#include <sys/resource.h>
int
getpriority(int which, int who)
--
looks documented to me.
>
> Either work around the problem by including <sys/time.h> _before_
This isn't a work around, it's what you're supposed to do.
-Chris
--
cpiazza@home.net cpiazza@FreeBSD.org
"Life is divided into the horrible and the miserable."
-Woody Allen
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906292030.NAA30644>
