Jelajahi Sumber

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>
Peter Seiderer 6 bulan lalu
induk
melakukan
5aee86ed31
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      libc/sysdeps/linux/common/utimes.c

+ 1 - 1
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])