diff options
author | DJ Delorie <dj@redhat.com> | 2005-03-10 01:05:51 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-03-10 01:05:51 +0000 |
commit | 2e5fb2d9fa86fc27c3cb4803ce8fcc0052565037 (patch) | |
tree | 1cb6fe31fd1ae05f591337375988f0f5df2ec33b /include | |
parent | 8b59143fcddc3c7596a2a4a2a484881754d12106 (diff) | |
download | cygnal-2e5fb2d9fa86fc27c3cb4803ce8fcc0052565037.tar.gz cygnal-2e5fb2d9fa86fc27c3cb4803ce8fcc0052565037.tar.bz2 cygnal-2e5fb2d9fa86fc27c3cb4803ce8fcc0052565037.zip |
merge from gcc
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/libiberty.h | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index d45c62a3c..b659971c1 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 4df814092..0814695a0 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)); |