Explorar el Código

fstatat: 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 hace 12 años
padre
commit
758a4fe9ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libc/sysdeps/linux/common/fstatat.c

+ 1 - 1
libc/sysdeps/linux/common/fstatat.c

@@ -11,7 +11,7 @@
 #include "xstatconv.h"
 
 /* 64bit ports tend to favor newfstatat() */
-#ifdef __NR_newfstatat
+#if __WORDSIZE == 64 && defined __NR_newfstatat
 # define __NR_fstatat64 __NR_newfstatat
 #endif