make fstatat fill in old time32 stat fields too
[musl] / src / unistd / close.c
index 2f1eabd..5b38e01 100644 (file)
@@ -1,7 +1,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include "syscall.h"
-#include "libc.h"
 
 static int dummy(int fd)
 {
@@ -14,6 +13,6 @@ int close(int fd)
 {
        fd = __aio_close(fd);
        int r = __syscall_cp(SYS_close, fd);
-       if (r == -EINTR) r = -EINPROGRESS;
+       if (r == -EINTR) r = 0;
        return __syscall_ret(r);
 }