]> git.eshelyaron.com Git - emacs.git/commitdiff
(get_boot_time): Reduce scope of #ifdef BOOT_TIME
authorKarl Heuer <kwzh@gnu.org>
Tue, 9 Mar 1999 03:31:10 +0000 (03:31 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 9 Mar 1999 03:31:10 +0000 (03:31 +0000)
to only the part that uses get_boot_time_1.

src/filelock.c

index 9ee09b4d072139d82ae0a1aa316033d7e6063e6c..429036f33057829f98169f2c8d6fe0407d789bb6 100644 (file)
@@ -110,7 +110,6 @@ extern Lisp_Object Vshell_file_name;
 static time_t
 get_boot_time ()
 {
-#ifdef BOOT_TIME
   struct utmp ut, *utp;
   int fd;
   EMACS_TIME time_before, after;
@@ -166,6 +165,7 @@ get_boot_time ()
   }
 #endif /* defined (CTL_KERN) && defined (KERN_BOOTTIME) */
 
+#ifdef BOOT_TIME
   /* Try to get boot time from the current wtmp file.  */
   get_boot_time_1 (WTMP_FILE);