From 2decc5a9e89847923ba7ad99c6ae1cf7740799a4 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 20 Sep 1999 23:18:45 +0000 Subject: [PATCH] (get_boot_time): Put local variable used in conditinally compiled section in #ifdef. (toplevel): Include stdio.h. --- src/filelock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/filelock.c b/src/filelock.c index ec3fa3cf48c..bcb71cb8c77 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. */ #include #include #include +#include #ifdef HAVE_STDLIB_H #include #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; -- 2.39.5