From: Richard M. Stallman Date: Sun, 30 Jul 1995 07:07:39 +0000 (+0000) Subject: (gettimeofday): New function, defined if necessary. X-Git-Tag: emacs-19.34~3137 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=79dbff47727219cf8f79c3ea766c6807f3962e3b;p=emacs.git (gettimeofday): New function, defined if necessary. --- 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 () {