]> Savannah Git Hosting - gnulib.git/commit
readutmp, boot-time: Fix compilation error on Android API 8.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Aug 2023 14:08:33 +0000 (16:08 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Aug 2023 14:08:33 +0000 (16:08 +0200)
commit1bd24cc326f0abd554d5707c1cd51cdcec8fffaf
treea5faecfd5e8d3edce06ccb3f68e931152e452227
parent9cf0d830f0afc16392ef859fa66a9c5b08d7fcbe
readutmp, boot-time: Fix compilation error on Android API 8.

Reported by Po Lu in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-08/msg00108.html>.

* m4/readutmp.m4 (gl_PREREQ_READUTMP_H): Test whether sysinfo is
declared.
* lib/boot-time-aux.h (get_linux_uptime): Invoke sysinfo only if it is
declared.
* doc/glibc-functions/sysinfo.texi: Mention the Android problem.
ChangeLog
doc/glibc-functions/sysinfo.texi
lib/boot-time-aux.h
m4/readutmp.m4