aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-20 23:18:45 +0000
committerGerd Moellmann1999-09-20 23:18:45 +0000
commit2decc5a9e89847923ba7ad99c6ae1cf7740799a4 (patch)
tree579d10a322d84fd9c699366d4266410218ff7869 /src
parentcb81ac977e74113c9a28baa2dbc8812feb354300 (diff)
downloademacs-2decc5a9e89847923ba7ad99c6ae1cf7740799a4.tar.gz
emacs-2decc5a9e89847923ba7ad99c6ae1cf7740799a4.zip
(get_boot_time): Put local variable used in
conditinally compiled section in #ifdef. (toplevel): Include stdio.h.
Diffstat (limited to 'src')
-rw-r--r--src/filelock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filelock.c b/src/filelock.c
index ec3fa3cf48c..bcb71cb8c77 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. */
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
@@ -125,7 +126,9 @@ extern Lisp_Object Vshell_file_name;
125static time_t 126static time_t
126get_boot_time () 127get_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;