Quellcode durchsuchen

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 vor 13 Jahren
Ursprung
Commit
cb529f08cf
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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