* msdos/sedlibmk.inp (OMIT_GNULIB_MODULE_boot-time): Define to
true.
* src/filelock.c (get_boot_sec) [MSDOS]: Return 0; this
information is probably unavailable. It is also irrelevant as
MS-DOS is a single-process operating system.
OMIT_GNULIB_MODULE_symlink = true\
OMIT_GNULIB_MODULE_sys_select = true\
OMIT_GNULIB_MODULE_sys_time = true\
+OMIT_GNULIB_MODULE_boot-time = true\
OMIT_GNULIB_MODULE_crypto\/md5 = true
/^arg-nonnull\.h:/,/^[ ][ ]*mv /c\
arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h\
hard nor symbolic links. */
\f
-/* Return the time of the last system boot. */
+/* Return the time of the last system boot, or 0 if that information
+ is unavailable. */
static time_t
get_boot_sec (void)
if (will_dump_p ())
return 0;
- struct timespec boot_time;
- boot_time.tv_sec = 0;
- get_boot_time (&boot_time);
- return boot_time.tv_sec;
+#ifndef MSDOS
+ {
+ struct timespec boot_time;
+ boot_time.tv_sec = 0;
+ get_boot_time (&boot_time);
+ return boot_time.tv_sec;
+ }
+#else /* MSDOS */
+ return 0;
+#endif /* MSDOS */
}
\f
/* An arbitrary limit on lock contents length. 8 K should be plenty