aboutsummaryrefslogtreecommitdiff
path: root/src/stat
diff options
context:
space:
mode:
Diffstat (limited to 'src/stat')
-rw-r--r--src/stat/fstat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stat/fstat.c b/src/stat/fstat.c
index b561176..a928986 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);