summaryrefslogtreecommitdiffstats
path: root/include/libiberty.h
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-10 00:57:10 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-10 00:57:10 +0000
commit5a24a79a9ed43d9154273567b60e88b694924c4f (patch)
treee1432758346a3d218242923db100c5546a76889e /include/libiberty.h
parentb2026bdf67a3f498571a128bbb8a052c63b11866 (diff)
downloadppe42-gcc-5a24a79a9ed43d9154273567b60e88b694924c4f.tar.gz
ppe42-gcc-5a24a79a9ed43d9154273567b60e88b694924c4f.zip
* libiberty.h (gettimeofday): Declare.
* configure.ac (funcs): Add gettimeofday. * configure: Regenerated. * gettimeofday.c: New file. * Makefile.in (CFILES): Add gettimeofday. (CONFIGURED_OFILES): Add gettimeofday.o. (./gettimeofday.o): New rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96230 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 4df814092c5..0814695a04a 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -145,6 +145,15 @@ extern int fdmatch PARAMS ((int fd1, int fd2));
extern char * getpwd PARAMS ((void));
+/* Get the current time. */
+/* Prototypes vary from system to system, so we only provide a
+ prototype on systems where we know that we need it. */
+#ifdef __MINGW32__
+/* Forward declaration to avoid #include <sys/time.h>. */
+struct timeval;
+extern int gettimeofday PARAMS ((struct timeval *, void *));
+#endif
+
/* Get the amount of time the process has run, in microseconds. */
extern long get_run_time PARAMS ((void));
OpenPOWER on IntegriCloud