BeOS portability.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Aug 2006 17:42:21 +0000 (17:42 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 22 Aug 2006 17:42:21 +0000 (17:42 +0000)
commitcafb7947b5a1c658a97cfd5251500dbd5f86028c
treeb137c42eb7623905b91bb7a3bae1434d1546057f
parent0797e95b8a8aa6a9dbbd21d60dfbce66a8b67c2e
BeOS portability.
* src/uptime.c: Include OS.h if it exists.
(print_uptime): On BeOS, use the get_system_info function (actually a
macro). Loop through utmp entries only if utmp.h or utmpx.h exists.
(uptime): Call read_utmp only if utmp.h or utmpx.h exists.
* m4/boottime.m4 (GNULIB_BOOT_TIME): Test also for utmp.h, utmpx.h,
OS.h. Don't require to have utmp.h or utmpx.h. Enable boottime
support if <OS.h> is found.
ChangeLog
m4/ChangeLog
m4/boottime.m4
src/uptime.c