diff options
author | Florian Weimer <fweimer@redhat.com> | 2024-04-19 14:38:17 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2024-05-02 19:30:48 +0200 |
commit | 85242ed63a33cac458eae3ffe504693680b686d9 (patch) | |
tree | 2ac8260b98175787a44289e0d3763c0ff218a0e0 /sysdeps/sparc/sparc64 | |
parent | eeeaf0fe2df339889f30f166c0b3c488535700cb (diff) | |
download | glibc-85242ed63a33cac458eae3ffe504693680b686d9.tar.gz glibc-85242ed63a33cac458eae3ffe504693680b686d9.tar.xz glibc-85242ed63a33cac458eae3ffe504693680b686d9.zip |
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 <adhemerval.zanella@linaro.org> (cherry picked from commit 9abdae94c7454c45e02e97e4ed1eb1b1915d13d8)
Diffstat (limited to 'sysdeps/sparc/sparc64')
-rw-r--r-- | sysdeps/sparc/sparc64/bits/wordsize.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/sparc/sparc64/bits/wordsize.h b/sysdeps/sparc/sparc64/bits/wordsize.h index 2f66f10d72..ea103e5970 100644 --- a/sysdeps/sparc/sparc64/bits/wordsize.h +++ b/sysdeps/sparc/sparc64/bits/wordsize.h @@ -2,10 +2,9 @@ #if defined __arch64__ || defined __sparcv9 # define __WORDSIZE 64 -# define __WORDSIZE_TIME64_COMPAT32 1 #else # define __WORDSIZE 32 -# define __WORDSIZE_TIME64_COMPAT32 0 # define __WORDSIZE32_SIZE_ULONG 0 # define __WORDSIZE32_PTRDIFF_LONG 0 #endif +#define __WORDSIZE_TIME64_COMPAT32 1 |