summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2012-10-11 11:45:45 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-20 13:45:12 +0100
commitcb529f08cfe1fd6ca86e13bac5934dc8cf1c6355 (patch)
treea4761a59ed366a501f3f8be309becbd0c5547fca /libc/sysdeps/linux/common
parent758a4fe9ce512bb6d144b35f3467d4caffae035a (diff)
fstatat64: Use newfstatat only for 64-bit operations
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/fstatat64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c
index 6be8ba4b5..9020fb521 100644
--- a/libc/sysdeps/linux/common/fstatat64.c
+++ b/libc/sysdeps/linux/common/fstatat64.c
@@ -7,10 +7,11 @@
*/
#include <_lfs_64.h>
+#include <bits/wordsize.h>
#include <sys/syscall.h>
/* 64bit ports tend to favor newfstatat() */
-#ifdef __NR_newfstatat
+#if __WORDSIZE == 64 && defined __NR_newfstatat
# define __NR_fstatat64 __NR_newfstatat
#endif