summaryrefslogtreecommitdiff
path: root/src/filelock.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1999-05-09 17:57:03 +0000
committerKarl Heuer <kwzh@gnu.org>1999-05-09 17:57:03 +0000
commitc6fd1dc43d2bca6e3ec8f8eedac752c9334b4c19 (patch)
tree2db301c2c91dc80d432f5896f6f4a11f0cd615b8 /src/filelock.c
parentd9db7b7b0e0d1be63e294d781e30ce14c01c5f19 (diff)
(get_boot_time): Handle NO_WTMP_FILE.
Diffstat (limited to 'src/filelock.c')
-rw-r--r--src/filelock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 3b65d127de9..d441d235770 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -165,7 +165,7 @@ get_boot_time ()
}
#endif /* defined (CTL_KERN) && defined (KERN_BOOTTIME) */
-#ifdef BOOT_TIME
+#if defined (BOOT_TIME) && ! defined (NO_WTMP_FILE)
/* Try to get boot time from the current wtmp file. */
get_boot_time_1 (WTMP_FILE);