diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-07 18:50:53 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-07 18:50:53 +0000 |
commit | 63e428d5ae7d26eb5c852c69bd8b5a70bde3f9a1 (patch) | |
tree | 47dcee03bddbc5190a55b18d05ed3af5ced230ca /libiberty/getruntime.c | |
parent | 5f6d1a4954cbbd0a5b4f6bd0b127533dc50482fd (diff) | |
download | gcc-63e428d5ae7d26eb5c852c69bd8b5a70bde3f9a1.tar.gz |
* configure.in (AC_TYPE_PID_T): Use it.
* configure: Regenerated.
* getruntime.c: Include <sys/types.h>.
* waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53264 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/getruntime.c')
-rw-r--r-- | libiberty/getruntime.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/getruntime.c b/libiberty/getruntime.c index 9301deb773e..3f7dc0d117a 100644 --- a/libiberty/getruntime.c +++ b/libiberty/getruntime.c @@ -1,5 +1,5 @@ /* Return time used so far, in microseconds. - Copyright (C) 1994, 1999 Free Software Foundation, Inc. + Copyright (C) 1994, 1999, 2002 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -22,6 +22,10 @@ Boston, MA 02111-1307, USA. */ #include "ansidecl.h" #include "libiberty.h" +/* On some systems (such as WindISS), you must include <sys/types.h> + to get the definition of "time_t" before you include <time.h>. */ +#include <sys/types.h> + /* There are several ways to get elapsed execution time; unfortunately no single way is available for all host systems, nor are there reliable ways to find out which way is correct for a given host. */ |