Commit 2decc5a9 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(get_boot_time): Put local variable used in

conditinally compiled section in #ifdef.
(toplevel): Include stdio.h.
parent cb81ac97
...@@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -23,6 +23,7 @@ Boston, MA 02111-1307, USA. */
#include <sys/stat.h> #include <sys/stat.h>
#include <signal.h> #include <signal.h>
#include <config.h> #include <config.h>
#include <stdio.h>
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
...@@ -125,7 +126,9 @@ extern Lisp_Object Vshell_file_name; ...@@ -125,7 +126,9 @@ extern Lisp_Object Vshell_file_name;
static time_t static time_t
get_boot_time () get_boot_time ()
{ {
#if defined (BOOT_TIME) && ! defined (NO_WTMP_FILE)
int counter; int counter;
#endif
if (boot_time_initialized) if (boot_time_initialized)
return boot_time; return boot_time;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment