]> Savannah Git Hosting - gnulib.git/commit
boot-time, readutmp: Add a Native Windows boot time fallback.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 25 May 2024 02:23:25 +0000 (19:23 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 25 May 2024 02:23:25 +0000 (19:23 -0700)
commit4c2435dc1fc80c3740204c59c1c7b6d9adbe54d3
treeaed340f8974cd1828b4260e31d123f751b3235f0
parent07e316a028af16ea6eca60bc8b127f220b12d824
boot-time, readutmp: Add a Native Windows boot time fallback.

* lib/boot-time-aux.h (initialize, get_windows_boot_time_fallback): New
functions.
* lib/boot-time.c [_WIN32 && !__CYGWIN__]: Include Windows headers and
<sys/time.h>.
(get_boot_time_uncached): Use the fallback.
* lib/readutmp.c [_WIN32 && !__CYGWIN__]: Include Windows headers and
<sys/time.h>.
(read_utmp_from_file): Use the fallback.
* modules/boot-time (Depends-on): Add gettimeofday.
ChangeLog
lib/boot-time-aux.h
lib/boot-time.c
lib/readutmp.c
modules/boot-time