From 758a4fe9ce512bb6d144b35f3467d4caffae035a Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 11 Oct 2012 11:44:44 +0100 Subject: fstatat: Use newfstatat only for 64-bit operations Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/fstatat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/fstatat.c') diff --git a/libc/sysdeps/linux/common/fstatat.c b/libc/sysdeps/linux/common/fstatat.c index 33daa7c98..a0bc3cd3a 100644 --- a/libc/sysdeps/linux/common/fstatat.c +++ b/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 -- cgit v1.2.3