From b34c8a4698b14f480f852d095ee02a7274046c9d Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Mon, 14 Jan 2013 15:57:03 +0000 Subject: fstat: Use fstat64 if arch does not have the fstat syscall Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/fstat64.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/sysdeps/linux/common/fstat64.c') 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 -- cgit v1.2.3