X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=inline;f=src%2Fstat%2Ffstat.c;h=4f13f4f0e39eacfb63010353810c5387bba817f6;hb=0beb9dfbecad38af9759b1e83eeb007e28b70abb;hp=a92898675dd005ab837cbfbdbbfdfe1527358a23;hpb=5cf9e8f860dcfe63b36e050dd7dfbc5e53745fce;p=musl diff --git a/src/stat/fstat.c b/src/stat/fstat.c index a9289867..4f13f4f0 100644 --- a/src/stat/fstat.c +++ b/src/stat/fstat.c @@ -2,9 +2,6 @@ #include #include #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);