]> Savannah Git Hosting - gnulib.git/commit
readutmp: Small changes to reduce the code size on the coreutils side.
authorBruno Haible <bruno@clisp.org>
Tue, 1 Aug 2023 22:56:25 +0000 (00:56 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 1 Aug 2023 22:56:25 +0000 (00:56 +0200)
commita6d192b9608516430d95c0255594aa4b003d5ebb
treec22ca84ce627fbed3987b23cef1327327b3062b5
parent0b71ff37a7cb0ce546975796f9366eee25be5fb7
readutmp: Small changes to reduce the code size on the coreutils side.

* m4/readutmp.m4 (gl_READUTMP): Test also for the ut_host field in
'struct utmpx' and 'struct utmp'.
* lib/readutmp.h (HAVE_STRUCT_XTMP_UT_HOST): New macro.
(UT_USER_SIZE): Define also as a macro. Set to -1 if
READUTMP_USE_SYSTEMD.
(UT_LINE_SIZE, UT_HOST_SIZE): New constants and macros.
ChangeLog
lib/readutmp.h
m4/readutmp.m4