diff options
author | Florian Weimer <fweimer@redhat.com> | 2024-04-19 14:38:17 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2024-05-02 13:20:27 +0200 |
commit | 836d43b98973e0845b739ff5d3aad3af09dc7d0f (patch) | |
tree | 9a22a49a4b3f221f2a9aa0c99f957dafd5059aba /sysdeps/powerpc | |
parent | 9831f98c266a8d56d1bf729b709c08e40375540c (diff) | |
download | glibc-836d43b98973e0845b739ff5d3aad3af09dc7d0f.zip glibc-836d43b98973e0845b739ff5d3aad3af09dc7d0f.tar.gz glibc-836d43b98973e0845b739ff5d3aad3af09dc7d0f.tar.bz2 |
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/powerpc')
-rw-r--r-- | sysdeps/powerpc/powerpc32/bits/wordsize.h | 3 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/bits/wordsize.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/powerpc/powerpc32/bits/wordsize.h b/sysdeps/powerpc/powerpc32/bits/wordsize.h index 04ca9de..6993fb6 100644 --- a/sysdeps/powerpc/powerpc32/bits/wordsize.h +++ b/sysdeps/powerpc/powerpc32/bits/wordsize.h @@ -2,10 +2,9 @@ #if defined __powerpc64__ # 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 diff --git a/sysdeps/powerpc/powerpc64/bits/wordsize.h b/sysdeps/powerpc/powerpc64/bits/wordsize.h index 04ca9de..6993fb6 100644 --- a/sysdeps/powerpc/powerpc64/bits/wordsize.h +++ b/sysdeps/powerpc/powerpc64/bits/wordsize.h @@ -2,10 +2,9 @@ #if defined __powerpc64__ # 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 |