add TLSDESC support for 32-bit arm
[musl] / src / stat / fstat.c
index a928986..4f13f4f 100644 (file)
@@ -2,9 +2,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include "syscall.h"
-#include "libc.h"
-
-void __procfdname(char *, unsigned);
 
 int fstat(int fd, struct stat *st)
 {
@@ -17,8 +14,8 @@ int fstat(int fd, struct stat *st)
 #ifdef SYS_stat
        return syscall(SYS_stat, buf, st);
 #else
-       return syscall(SYS_fstatat, AT_FDCWD, buf, st);
+       return syscall(SYS_fstatat, AT_FDCWD, buf, st, 0);
 #endif
 }
 
-LFS64(fstat);
+weak_alias(fstat, fstat64);