]> 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)
committerBruno Haible <bruno@clisp.org>
Fri, 31 May 2024 15:35:16 +0000 (17:35 +0200)
commit767950661f91dc88d9534bc8f94a73205e338a97
treef793e0dfbe00762431da0035fbaea06ac7a0b325
parent58b2348f26ef3452241b9cbabda834e03fc1a505
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.
* modules/readutmp (Depends-on): Add gettimeofday.
ChangeLog
lib/boot-time-aux.h
lib/boot-time.c
lib/readutmp.c
modules/boot-time
modules/readutmp