From owner-freebsd-hackers Thu Oct 8 12:33:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA00856 for freebsd-hackers-outgoing; Thu, 8 Oct 1998 12:33:44 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smarter.than.nu (lal-99-91.Reshall.Berkeley.EDU [169.229.99.91]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA00849 for ; Thu, 8 Oct 1998 12:33:41 -0700 (PDT) (envelope-from brian@CSUA.Berkeley.EDU) Received: from localhost (localhost [127.0.0.1]) by smarter.than.nu (8.9.1/8.8.8) with SMTP id MAA02416; Thu, 8 Oct 1998 12:35:07 -0700 (PDT) (envelope-from brian@CSUA.Berkeley.EDU) Date: Thu, 8 Oct 1998 12:35:07 -0700 (PDT) From: "Brian W. Buchanan" X-Sender: brian@smarter.than.nu To: Glenn Johnson cc: hackers@FreeBSD.ORG Subject: Re: incomplete type errors In-Reply-To: <199810081721.MAA00871@symbion.srrc.usda.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 8 Oct 1998, Glenn Johnson wrote: > I am trying to compile the code below: > > #include > #ifdef _TIMES > #include ^^^^^^^^^^^^^^^^^^^^^ > > In file included from etime.c:56: > /usr/include/sys/resource.h:58: field `ru_utime' has incomplete type > /usr/include/sys/resource.h:59: field `ru_stime' has incomplete type > > struct rusage { > struct timeval ru_utime; /* user time used */ > struct timeval ru_stime; /* system time used */ ^^^^^^^^^^^^^^ struct timeval is defined in . Move the #include directive for it outside of the #ifdef _TIMES block, as it appears that _TIMES is not defined. -- Brian Buchanan brian@smarter.than.nu brian@soda.CSUA.Berkeley.EDU "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin, 1759 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message