changeset 25784:fe4ca7eaee87

(get_boot_time): Put local variable used in conditinally compiled section in #ifdef. (toplevel): Include stdio.h.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 20 Sep 1999 23:18:45 +0000
parents 17eb5827f07b
children 0d701c4484e3
files src/filelock.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/filelock.c	Mon Sep 20 23:18:44 1999 +0000
+++ b/src/filelock.c	Mon Sep 20 23:18:45 1999 +0000
@@ -23,6 +23,7 @@
 #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 @@
 static time_t
 get_boot_time ()
 {
+#if defined (BOOT_TIME) && ! defined (NO_WTMP_FILE)
   int counter;
+#endif
 
   if (boot_time_initialized)
     return boot_time;