]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/utmp.c: Use the appropriate autotools macros for struct utmpx
authorAlejandro Colomar <alx@kernel.org>
Tue, 20 Feb 2024 18:15:41 +0000 (19:15 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 21 Feb 2024 14:43:25 +0000 (15:43 +0100)
commit1af6b68cbeb95f99d096ac4490bd98bca73328b0
treed15d570c7b3a051dd17e9113ac298218bc7b3c35
parent2806b827d8394117f5c64218a7600fb491477df9
lib/utmp.c: Use the appropriate autotools macros for struct utmpx

Recently, we started using utmpx instead of utmp, and we updated
<./configure.ac> to do the checks for 'struct utmpx' instead of
'struct utmp'.  However, I forgot to update the preprocessor
conditionals accordingly.

Fixes: 64bcb54fa962 ("lib/, src/, configure.ac: Use utmpx instead of utmp")
Link: <https://github.com/shadow-maint/shadow/pull/954>
Cc: Firas Khalil Khana <firasuke@gmail.com>
Cc: "A. Wilfox" <https://github.com/awilfox>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/utmp.c