From 161d237ad04eb3815ebf154f0bec9ab88195a70f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 2 Apr 2018 14:41:25 +0100 Subject: use __NR_newfstatat only for modern Linux architectures Otherwise it breaks mips64 n64. Should be used for aarch64/tilegx only. --- libc/sysdeps/linux/common/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/stat.c') diff --git a/libc/sysdeps/linux/common/stat.c b/libc/sysdeps/linux/common/stat.c index 3a6f533a9..6489d229b 100644 --- a/libc/sysdeps/linux/common/stat.c +++ b/libc/sysdeps/linux/common/stat.c @@ -20,7 +20,7 @@ int stat(const char *file_name, struct stat *buf) return fstatat(AT_FDCWD, file_name, buf, 0); } -#elif __WORDSIZE == 64 && defined __NR_newfstatat +#elif __WORDSIZE == 64 && defined __NR_newfstatat && !defined __ARCH_HAS_DEPRECATED_SYSCALLS__ # include int stat(const char *file_name, struct stat *buf) -- cgit v1.2.3