]> Savannah Git Hosting - gnulib.git/commit
readutmp: Return a boot time also on Alpine Linux.
authorBruno Haible <bruno@clisp.org>
Wed, 9 Aug 2023 20:27:16 +0000 (22:27 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 9 Aug 2023 20:27:16 +0000 (22:27 +0200)
commit51f5c00413f3b2fc42520d4f520a8b9181afe531
tree9f5bcbf0c639d373424b8b6ca88bb369ba68ae17
parent321daa595e02717c7dca111184fc091fda3862f8
readutmp: Return a boot time also on Alpine Linux.

* lib/readutmp.c: Include stat-time.h.
(SIZEOF): New macro.
(read_utmp_from_file) [__linux__]: Fake a BOOT_TIME entry by looking
at the time stamp of a specific file.
* modules/readutmp (Depends-on): Add stat-time.
ChangeLog
lib/readutmp.c
modules/readutmp