X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstdio%2F__stdio_close.c;h=30291328518783e7d46284da4546863adfb9efeb;hb=2b754a542492f5878608a1130e00021ae02a0e34;hp=9f7ee18c23fa98837aa44f49b2d58ecef8b3e4a6;hpb=aa398f56fa398f2202b04e82c67f822f3233786f;p=musl diff --git a/src/stdio/__stdio_close.c b/src/stdio/__stdio_close.c index 9f7ee18c..30291328 100644 --- a/src/stdio/__stdio_close.c +++ b/src/stdio/__stdio_close.c @@ -1,6 +1,14 @@ #include "stdio_impl.h" +#include "aio_impl.h" + +static int dummy(int fd) +{ + return fd; +} + +weak_alias(dummy, __aio_close); int __stdio_close(FILE *f) { - return syscall(SYS_close, f->fd); + return syscall(SYS_close, __aio_close(f->fd)); }