Mercurial > emacs
comparison src/filelock.c @ 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 | e6246adc8a35 |
children | ca384fd94454 |
comparison
equal
deleted
inserted
replaced
25783:17eb5827f07b | 25784:fe4ca7eaee87 |
---|---|
21 | 21 |
22 #include <sys/types.h> | 22 #include <sys/types.h> |
23 #include <sys/stat.h> | 23 #include <sys/stat.h> |
24 #include <signal.h> | 24 #include <signal.h> |
25 #include <config.h> | 25 #include <config.h> |
26 #include <stdio.h> | |
26 #ifdef HAVE_STDLIB_H | 27 #ifdef HAVE_STDLIB_H |
27 #include <stdlib.h> | 28 #include <stdlib.h> |
28 #endif | 29 #endif |
29 | 30 |
30 #ifdef VMS | 31 #ifdef VMS |
123 extern Lisp_Object Vshell_file_name; | 124 extern Lisp_Object Vshell_file_name; |
124 | 125 |
125 static time_t | 126 static time_t |
126 get_boot_time () | 127 get_boot_time () |
127 { | 128 { |
129 #if defined (BOOT_TIME) && ! defined (NO_WTMP_FILE) | |
128 int counter; | 130 int counter; |
131 #endif | |
129 | 132 |
130 if (boot_time_initialized) | 133 if (boot_time_initialized) |
131 return boot_time; | 134 return boot_time; |
132 boot_time_initialized = 1; | 135 boot_time_initialized = 1; |
133 | 136 |