]> code.delx.au - gnu-emacs/commitdiff
(get_boot_time): Put local variable used in
authorGerd Moellmann <gerd@gnu.org>
Mon, 20 Sep 1999 23:18:45 +0000 (23:18 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 20 Sep 1999 23:18:45 +0000 (23:18 +0000)
conditinally compiled section in #ifdef.
(toplevel): Include stdio.h.

src/filelock.c

index ec3fa3cf48c480ffaedb75ca99ebba0202a9c9ea..bcb71cb8c77e80ad6ee1a76f17b98387fa317ddb 100644 (file)
@@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA.  */
 #include <sys/stat.h>
 #include <signal.h>
 #include <config.h>
+#include <stdio.h>
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
@@ -125,7 +126,9 @@ extern Lisp_Object Vshell_file_name;
 static time_t
 get_boot_time ()
 {
+#if defined (BOOT_TIME) && ! defined (NO_WTMP_FILE)
   int counter;
+#endif
 
   if (boot_time_initialized)
     return boot_time;