From owner-freebsd-bugs Tue Jun 29 13:30: 5 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 32658150E7 for ; Tue, 29 Jun 1999 13:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA30644; Tue, 29 Jun 1999 13:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 29 Jun 1999 13:30:02 -0700 (PDT) Message-Id: <199906292030.NAA30644@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Chris Piazza Subject: Re: bin/12452: Missing #include in (Patch included) Reply-To: Chris Piazza Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/12452; it has been noted by GNATS. From: Chris Piazza To: k.stevenson@louisville.edu Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/12452: Missing #include in (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 is not included in the header file. > > The log message from version 1.8 of /usr/include/sys/resource.h mentions > that 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 #include int getpriority(int which, int who) -- looks documented to me. > > Either work around the problem by including _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