summaryrefslogtreecommitdiff
path: root/lib-src/profile.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-07-30 07:07:39 +0000
committerRichard M. Stallman <rms@gnu.org>1995-07-30 07:07:39 +0000
commit177037e27fd9bb8af4ea22c63468da9a2de9913d (patch)
tree175ce1336995108838b0916d5300eca54ac246a0 /lib-src/profile.c
parent31f1d00db22f613b736585707bbb5865cb9562af (diff)
downloademacs-177037e27fd9bb8af4ea22c63468da9a2de9913d.tar.gz
(gettimeofday): New function, defined if necessary.
Diffstat (limited to 'lib-src/profile.c')
-rw-r--r--lib-src/profile.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib-src/profile.c b/lib-src/profile.c
index d0c4b93a0d5..7f2b416ee4b 100644
--- a/lib-src/profile.c
+++ b/lib-src/profile.c
@@ -61,6 +61,23 @@ get_time ()
return time_string;
}
+#if ! defined (HAVE_GETTIMEOFDAY) && defined (HAVE_TIMEVAL)
+
+/* ARGSUSED */
+gettimeofday (tp, tzp)
+ struct timeval *tp;
+ struct timezone *tzp;
+{
+ extern long time ();
+
+ tp->tv_sec = time ((long *)0);
+ tp->tv_usec = 0;
+ if (tzp != 0)
+ tzp->tz_minuteswest = -1;
+}
+
+#endif
+
void
main ()
{