* timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jul 2000 09:36:52 +0000 (09:36 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jul 2000 09:36:52 +0000 (09:36 +0000)
[NEED_DECLARATION_GETRUSAGE]: Declare getrusage.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34884 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/timevar.c

index 4db578b..6c4f47e 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-06  Hans-Peter Nilsson  <hp@axis.com>
+
+       * timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
+       [NEED_DECLARATION_GETRUSAGE]: Declare getrusage.
+
 2000-07-05  Kazu Hirata  <kazu@hxi.com>
 
        * h8300-proto.h: Fix formatting.
index 089fae0..6635c1d 100644 (file)
 # include <sys/times.h>
 #endif
 
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+#ifdef NEED_DECLARATION_GETRUSAGE
+extern int getrusage PARAMS ((int, struct rusage *));
+#endif
+
 #include "flags.h"
 #include "timevar.h"