changeset 12723:48786c683506

(gettimeofday): New function, defined if necessary.
author Richard M. Stallman <rms@gnu.org>
date Sun, 30 Jul 1995 07:07:39 +0000
parents ed5de994fa90
children c3cb2b06e05f
files lib-src/profile.c
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/profile.c	Sun Jul 30 07:06:08 1995 +0000
+++ b/lib-src/profile.c	Sun Jul 30 07:07:39 1995 +0000
@@ -61,6 +61,23 @@
   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 ()
 {