Commit 19cb99e334bb741a719aa2ee7b3ebf8bfa8bf02b

Paul Eggert 2023-08-12T15:46:43

boot-time: do not depend on timespec_get This is for Emacs, which does not use timespec_get now and which likes to minimize dependencies. Also, treat musl libc like recent glibc, and fix a timespec_get return value typo. * lib/boot-time-aux.h (get_linux_uptime): Assume musl libc supports CLOCK_BOOTTIME. (get_linux_boot_time_final_fallback): Likewise for musl libc and CLOCK_REALTIME. Do not rely on the timespec_get module, to break the dependency. Consider 0 to be a failure return from timespec_get. Fall back on gettimeofday if timespec_get does not exist. * modules/boot-time (Depends-on): Remove timespec_get.