Browse Source

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>
Markos Chandras 12 years ago
parent
commit
cb529f08cf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libc/sysdeps/linux/common/fstatat64.c

+ 2 - 1
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