diff --git a/configure.ac b/configure.ac index 0bc0de1bfac..0236dbd89d8 100644 --- a/configure.ac +++ b/configure.ac @@ -2643,6 +2643,17 @@ AC_CACHE_CHECK([for old but post-boot file], do test -f $file && { emacs_cv_boot_time_file=$file; break; } done])], + # This isn't perfect, as some systems might have the page file in + # another place. Also, I suspect that the time stamp of that + # file might also change when Windows enlarges the file due to + # insufficient VM. Still, this seems to be the most reliable + # way; the alternative (of using GetSystemTimes) won't work on + # laptops that hibernate, because the system clock is stopped + # then. Other possibility would be to run "net statistics + # workstation" and parse the output, but that's gross. So this + # should do; if the file is not there, the boot time will be + # returned as zero, and filelock.c already handles that. + [mingw32], [emacs_cv_boot_time_file=C:/pagefile.sys], [*], [emacs_cv_boot_time_file=not-needed])]) AS_CASE([$emacs_cv_boot_time_file], diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h index 58be1199345..fce15fcbd8c 100644 --- a/nt/inc/ms-w32.h +++ b/nt/inc/ms-w32.h @@ -111,18 +111,6 @@ along with GNU Emacs. If not, see . */ # endif #endif -/* This isn't perfect, as some systems might have the page file in - another place. Also, I suspect that the time stamp of that file - might also change when Windows enlarges the file due to - insufficient VM. Still, this seems to be the most reliable way; - the alternative (of using GetSystemTimes) won't work on laptops - that hibernate, because the system clock is stopped then. Other - possibility would be to run "net statistics workstation" and parse - the output, but that's gross. So this should do; if the file is - not there, the boot time will be returned as zero, and filelock.c - already handles that. */ -#define BOOT_TIME_FILE "C:/pagefile.sys" - /* ============================================================ */ /* Here, add any special hacks needed to make Emacs work on this