summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-03 06:04:16 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-03 06:04:16 +0100
commit71127e5cc937878883e6021da3da337a7aa9c099 (patch)
tree3ea1f5c568d810e5239ba2ca009494c9bbddb8b6 /libc
parent3b09bf921e994efd50c3c285f7388fbdbce374d1 (diff)
fstat: make new code aarch64 specific
The new code get's used by MIPS64 N64 and fails. Make the new code aarch64 specific.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/fstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/fstat.c b/libc/sysdeps/linux/common/fstat.c
index ac77eb295..c27f92679 100644
--- a/libc/sysdeps/linux/common/fstat.c
+++ b/libc/sysdeps/linux/common/fstat.c
@@ -21,7 +21,7 @@ int fstat(int fd, struct stat *buf)
}
libc_hidden_def(fstat)
-#elif __WORDSIZE == 64 && defined __NR_newfstatat
+#elif __WORDSIZE == 64 && defined __NR_newfstatat && __aarch64__
#include <fcntl.h>
int fstat(int fd, struct stat *buf)