Hi,
The Gnulib module 'readutmp' has changed a lot recently: It can now
determine the boot time appropriately on all kinds of platforms,
including OpenBSD, Android, Minix, Haiku, and Windows.
By the fact that the same code for determination of the boot time
is used by the program invocations "who -a" and "update", these
have become more consistent. (I'll submit a NEWS entry about this soon.)
In particular:
* There is no need any more to exclude building 'uptime' on some
platforms.
* Code for specific platforms, that is in src/uptime.c but not in
src/who.c, is no longer needed.
Here is a proposed patch for simplification.
Tested on:
- glibc,
- the platforms with sysctl KERN_BOOTTIME (macOS 12.5, FreeBSD 13.2,
NetBSD 9.3, OpenBSD 7.2, Minix 3.3),
- the platforms with <OS.h> (Haiku r1beta4).