diff options
author | Dmitry Chestnykh <dm.chestnykh@gmail.com> | 2024-02-28 11:45:08 +0300 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-02-28 10:07:11 +0100 |
commit | 8a6af75fcae2d24cd14f2d91c11a52adae154ebc (patch) | |
tree | 1539874e0040ed53a3ca993f4e5b78cfb7fcee78 /libc/sysdeps/linux/common/fstatat64.c | |
parent | 0b4d5ed47cc1b8b6a024fc2f3eafa8331953eab2 (diff) |
libc: always redirect *stat() family to statx() with time64 enabled.
Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/fstatat64.c')
-rw-r--r-- | libc/sysdeps/linux/common/fstatat64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c index fdd17a0b7..16dbf9215 100644 --- a/libc/sysdeps/linux/common/fstatat64.c +++ b/libc/sysdeps/linux/common/fstatat64.c @@ -23,7 +23,7 @@ # define __NR_fstatat64 __NR_newfstatat #endif -#ifdef __NR_fstatat64 +#if defined(__NR_fstatat64) && !defined(__UCLIBC_USE_TIME64__) # include <sys/stat.h> # include "xstatconv.h" int fstatat64(int fd, const char *file, struct stat64 *buf, int flag) @@ -57,7 +57,7 @@ int fstatat64(int fd, const char *file, struct stat64 *buf, int flag) STATX_BASIC_STATS, &tmp); if (r == 0) - __cp_stat64_statx ((struct stat *)buf, &tmp); + __cp_stat64_statx ((struct stat64 *)buf, &tmp); return r; } |