summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/filelock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 39cfe68c8fd..fc00647baba 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -191,6 +191,7 @@ get_boot_time ()
#endif
}
+#ifdef BOOT_TIME
/* Try to get the boot time from wtmp file FILENAME.
This succeeds if that file contains a reboot record.
Success is indicated by setting BOOT_TIME. */
@@ -220,6 +221,7 @@ get_boot_time_1 (filename)
}
endutent ();
}
+#endif /* BOOT_TIME */
/* Here is the structure that stores information about a lock. */