]> git.ipfire.org Git - thirdparty/coreutils.git/commit
build: uptime: avoid issues on systems without utmp.h
authorPádraig Brady <P@draigBrady.com>
Sun, 5 Feb 2023 13:51:20 +0000 (13:51 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 5 Feb 2023 14:15:03 +0000 (14:15 +0000)
commit2984e47c789ebc39f55a3b1cb20b943de88eeedc
tree6d24faa0e26fe52c37bbac644d803eb24d3cf4b0
parent5699313c7615a0006ba39bed40725f6eae52274d
build: uptime: avoid issues on systems without utmp.h

* src/uptime.c (print_uptime): Following gnulib commit 9041103
HAVE_UTMP_H will always be defined.  Therefore key on whether
the utmp.ut_type member is present.
* boottime.m4 (GNULIB_BOOT_TIME): Assume utmp.h is present.
m4/boottime.m4
src/uptime.c