From cb529f08cfe1fd6ca86e13bac5934dc8cf1c6355 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 11 Oct 2012 11:45:45 +0100 Subject: fstatat64: Use newfstatat only for 64-bit operations Signed-off-by: Markos Chandras Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/fstatat64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c index 6be8ba4b5..9020fb521 100644 --- a/libc/sysdeps/linux/common/fstatat64.c +++ b/libc/sysdeps/linux/common/fstatat64.c @@ -7,10 +7,11 @@ */ #include <_lfs_64.h> +#include #include /* 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