summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/fstat64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/fstat64.c')
-rw-r--r--libc/sysdeps/linux/common/fstat64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/fstat64.c b/libc/sysdeps/linux/common/fstat64.c
index 7460c26f6..aaaf03e66 100644
--- a/libc/sysdeps/linux/common/fstat64.c
+++ b/libc/sysdeps/linux/common/fstat64.c
@@ -20,6 +20,7 @@ static __always_inline _syscall2(int, __syscall_fstat64,
int fstat64(int fd, struct stat64 *buf)
{
+#ifdef __ARCH_HAS_DEPRECATED_SYSCALLS__
int result;
struct kernel_stat64 kbuf;
@@ -28,6 +29,9 @@ int fstat64(int fd, struct stat64 *buf)
__xstat64_conv(&kbuf, buf);
}
return result;
+#else
+ return __syscall_fstat64(fd, buf);
+#endif
}
libc_hidden_def(fstat64)
#endif