summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-10 00:57:10 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2005-03-10 00:57:10 +0000
commit17049f0bbb41269470981caefa6d05fd3c26b47b (patch)
treee1432758346a3d218242923db100c5546a76889e /include
parent15692245885b30db38255a5449c4e980c208560b (diff)
downloadgcc-17049f0bbb41269470981caefa6d05fd3c26b47b.tar.gz
libiberty.h (gettimeofday): Declare.
* 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. From-SVN: r96230
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/libiberty.h9
2 files changed, 13 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 5d65bdcef63..758b923a300 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-09 Mark Mitchell <mark@codesourcery.com>
+
+ * libiberty.h (gettimeofday): Declare.
+
2005-03-01 Jan Beulich <jbeulich@novell.com>
* libiberty.h: Declare unlink_if_ordinary.
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));