From: Hans-Peter Nilsson Date: Thu, 6 Jul 2000 09:36:52 +0000 (+0000) Subject: timevar.c: [HAVE_SYS_RESOURCE_H]: Include . X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9721d41cbdcf8604ad0983ee2f94cc60efbeeab;p=platform%2Fupstream%2Fgcc.git timevar.c: [HAVE_SYS_RESOURCE_H]: Include . * timevar.c: [HAVE_SYS_RESOURCE_H]: Include . [NEED_DECLARATION_GETRUSAGE]: Declare getrusage. From-SVN: r34884 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4db578b..6c4f47e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-07-06 Hans-Peter Nilsson + + * timevar.c: [HAVE_SYS_RESOURCE_H]: Include . + [NEED_DECLARATION_GETRUSAGE]: Declare getrusage. + 2000-07-05 Kazu Hirata * h8300-proto.h: Fix formatting. diff --git a/gcc/timevar.c b/gcc/timevar.c index 089fae0..6635c1d1 100644 --- a/gcc/timevar.c +++ b/gcc/timevar.c @@ -27,6 +27,13 @@ # include #endif +#ifdef HAVE_SYS_RESOURCE_H +#include +#endif +#ifdef NEED_DECLARATION_GETRUSAGE +extern int getrusage PARAMS ((int, struct rusage *)); +#endif + #include "flags.h" #include "timevar.h"