]> Savannah Git Hosting - gnulib.git/commit
readutmp, boot-time: On Haiku, return the boot time.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Aug 2023 17:40:28 +0000 (19:40 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 12 Aug 2023 17:40:28 +0000 (19:40 +0200)
commit92a6fbdeccc6373e554d014ba9465b8d1d9cd150
tree56662a4bc395c1ce27e8eb150020342fdd261b4f
parent826c19d3dc416244267d3d21f7a901a7163d7d22
readutmp, boot-time: On Haiku, return the boot time.

* m4/readutmp.m4 (gl_PREREQ_READUTMP_H): Test whether <OS.h> exists.
* lib/boot-time-aux.h (get_haiku_boot_time,
get_haiku_boot_time_final_fallback): New functions.
* lib/readutmp.c: Include <OS.h>.
(read_utmp_from_file): If opening UTMP_FILE fails, continue processing
instead of failing. Invoke get_haiku_boot_time and
get_haiku_boot_time_final_fallback.
* lib/boot-time.c: Include <OS.h>.
(get_boot_time_uncached): Invoke get_haiku_boot_time and
get_haiku_boot_time_final_fallback.
ChangeLog
lib/boot-time-aux.h
lib/boot-time.c
lib/readutmp.c
m4/readutmp.m4