[PATCH v3 34/48] fstatat64: Use newfstatat only for 64-bit operations
Markos Chandras
markos.chandras at gmail.com
Wed Jan 23 11:41:58 UTC 2013
From: Markos Chandras <markos.chandras at imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras at imgtec.com>
---
libc/sysdeps/linux/common/fstatat64.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c
index 6be8ba4..9020fb5 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
--
1.8.1.1
More information about the uClibc
mailing list