From 836d43b98973e0845b739ff5d3aad3af09dc7d0f Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 19 Apr 2024 14:38:17 +0200 Subject: login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) These structs describe file formats under /var/log, and should not depend on the definition of _TIME_BITS. This is achieved by defining __WORDSIZE_TIME64_COMPAT32 to 1 on 32-bit ports that support 32-bit time_t values (where __time_t is 32 bits). Reviewed-by: Adhemerval Zanella (cherry picked from commit 9abdae94c7454c45e02e97e4ed1eb1b1915d13d8) --- login/tst-utmp-size-64.c | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 login/tst-utmp-size-64.c (limited to 'login/tst-utmp-size-64.c') diff --git a/login/tst-utmp-size-64.c b/login/tst-utmp-size-64.c new file mode 100644 index 0000000000..7a581a4c12 --- /dev/null +++ b/login/tst-utmp-size-64.c @@ -0,0 +1,2 @@ +/* The on-disk layout must not change in time64 mode. */ +#include "tst-utmp-size.c" -- cgit 1.4.1