From 5cf9e8f860dcfe63b36e050dd7dfbc5e53745fce Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 30 May 2014 01:51:23 -0400 Subject: additional fixes for linux kernel apis with old syscalls removed --- src/stat/fstat.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stat') diff --git a/src/stat/fstat.c b/src/stat/fstat.c index b5611767..a9289867 100644 --- a/src/stat/fstat.c +++ b/src/stat/fstat.c @@ -14,7 +14,11 @@ int fstat(int fd, struct stat *st) char buf[15+3*sizeof(int)]; __procfdname(buf, fd); +#ifdef SYS_stat return syscall(SYS_stat, buf, st); +#else + return syscall(SYS_fstatat, AT_FDCWD, buf, st); +#endif } LFS64(fstat); -- cgit v1.2.1