From 5f7dc9b62575cfab781abda80602515ce42b43e8 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 28 Dec 2014 21:33:35 +0100 Subject: for mips64 with N32 ABI we need to use newfstatat Fixes compile errors with latest util-linux. --- libc/sysdeps/linux/common/fstatat64.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c index 015f57d13..711521a6a 100644 --- a/libc/sysdeps/linux/common/fstatat64.c +++ b/libc/sysdeps/linux/common/fstatat64.c @@ -10,10 +10,18 @@ #include #include +#if defined __mips__ +# include +#endif + /* 64bit ports tend to favor newfstatat() */ #if __WORDSIZE == 64 && defined __NR_newfstatat # define __NR_fstatat64 __NR_newfstatat #endif +/* mips N32 ABI use newfstatat(), too */ +#if defined __mips__ && _MIPS_SIM == _ABIN32 +# define __NR_fstatat64 __NR_newfstatat +#endif #ifdef __NR_fstatat64 # include -- cgit v1.2.3