diff options
author | Florian Weimer <fweimer@redhat.com> | 2024-04-19 14:38:17 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2024-04-19 14:38:17 +0200 |
commit | 9abdae94c7454c45e02e97e4ed1eb1b1915d13d8 (patch) | |
tree | 859aab3bfb1c866f6350c83fc46e98c381877422 /sysdeps/microblaze/bits | |
parent | 4d4da5aab936504b2d3eca3146e109630d9093c4 (diff) | |
download | glibc-9abdae94c7454c45e02e97e4ed1eb1b1915d13d8.tar.gz glibc-9abdae94c7454c45e02e97e4ed1eb1b1915d13d8.tar.xz glibc-9abdae94c7454c45e02e97e4ed1eb1b1915d13d8.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>
Diffstat (limited to 'sysdeps/microblaze/bits')
-rw-r--r-- | sysdeps/microblaze/bits/wordsize.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sysdeps/microblaze/bits/wordsize.h b/sysdeps/microblaze/bits/wordsize.h new file mode 100644 index 0000000000..6ecbfe7c86 --- /dev/null +++ b/sysdeps/microblaze/bits/wordsize.h @@ -0,0 +1,21 @@ +/* Copyright (C) 1999-2024 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + <https://www.gnu.org/licenses/>. */ + +#define __WORDSIZE 32 +#define __WORDSIZE_TIME64_COMPAT32 1 +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 |