diff options
author | Peter Seiderer <ps.report@gmx.net> | 2025-07-19 13:13:01 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-07-19 13:32:37 +0200 |
commit | 5aee86ed3123fb13c0c2ebd31d6a51c17766ce94 (patch) | |
tree | 90d71edb53b150ed9d1a80fcb89c20581a690f9a /libc/sysdeps | |
parent | a9577b93a24f58c5b8986c90e9eff2353f608d02 (diff) |
utimes: force to use 64-bit implementation if available and requested
Fixes 64-/32-bit time_t regression on ARM32 (reported for buildroot, see [1]
for details).
[1] https://gitlab.com/buildroot.org/buildroot/-/issues/128
Fixes: 48591e2a2 ("Provide fixups for riscv32.")
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/utimes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/utimes.c b/libc/sysdeps/linux/common/utimes.c index a28594dfd..eb128d352 100644 --- a/libc/sysdeps/linux/common/utimes.c +++ b/libc/sysdeps/linux/common/utimes.c @@ -9,7 +9,7 @@ #include <sys/syscall.h> #include <sys/time.h> -#if (defined (__NR_utimensat) || defined(__NR_utimensat_time64)) && !defined __NR_utimes +#if (defined (__NR_utimensat) || defined(__NR_utimensat_time64)) && defined(__UCLIBC_USE_TIME64__) # include <fcntl.h> # include <stddef.h> int utimes(const char *file, const struct timeval tvp[2]) |