summaryrefslogtreecommitdiff
path: root/gcc/timevar.c
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-06 09:36:52 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-06 09:36:52 +0000
commit00edab463d3e9040c422c10beec27f1c2e266bf1 (patch)
treee22e04e2e2b0580ca2363b3c43963e7d8c98439b /gcc/timevar.c
parentb0fc35240bd827c3e408ad80d88e240be20f225d (diff)
downloadgcc-00edab463d3e9040c422c10beec27f1c2e266bf1.tar.gz
* timevar.c: [HAVE_SYS_RESOURCE_H]: Include <sys/resource.h>.
[NEED_DECLARATION_GETRUSAGE]: Declare getrusage. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34884 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/timevar.c')
-rw-r--r--gcc/timevar.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/timevar.c b/gcc/timevar.c
index 089fae0a5b2..6635c1d13dc 100644
--- a/gcc/timevar.c
+++ b/gcc/timevar.c
@@ -27,6 +27,13 @@
# 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"