]> git.eshelyaron.com Git - emacs.git/commitdiff
(gettimeofday): If system doesn't have this, define it to give a fatal error.
authorRichard M. Stallman <rms@gnu.org>
Thu, 14 Apr 1994 12:01:31 +0000 (12:01 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 14 Apr 1994 12:01:31 +0000 (12:01 +0000)
lib-src/profile.c

index b204e13c20fb171c76c714e6ad910433163a4a90..523659c5586b1a755341197268f73317d724a182 100644 (file)
@@ -38,6 +38,14 @@ static struct timezone *tzp = (struct timezone *) NULL; /* no need timezone */
 static int watch_not_started = 1; /* flag */
 static char time_string[30];
 
+#ifndef HAVE_GETTIMEOFDAY
+gettimeofday ()
+{
+  fprintf (stderr, "profile: this system does not support gettimeofday\n");
+  exit (1);
+}
+#endif
+
 /* Reset the stopwatch to zero.  */
 
 int