additional fixes for linux kernel apis with old syscalls removed

This commit is contained in:
Rich Felker
2014-05-30 01:51:23 -04:00
parent 55f45bc722
commit 5cf9e8f860
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -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);