diff options
Diffstat (limited to 'lib/libc/stdio/fclose.c')
| -rw-r--r-- | lib/libc/stdio/fclose.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/fclose.c b/lib/libc/stdio/fclose.c index 8b0586c6..4534715b 100644 --- a/lib/libc/stdio/fclose.c +++ b/lib/libc/stdio/fclose.c @@ -1,6 +1,6 @@ -#include <libc.h> // for __IMPL -#include <stdio.h> // for fflush, FILE, fclose, stderr, stdin, stdout -#include <unistd.h> // for close +#include <__stdio.h> // for __FILE +#include <stdio.h> // for fflush, FILE, fclose, stderr, stdin, stdout +#include <unistd.h> // for close int fclose(FILE *stream) { @@ -8,7 +8,7 @@ int fclose(FILE *stream) return -1; if (stream != stdin && stream != stdout && stream != stderr) { - if (close(__IMPL(stream)->fd) == -1) + if (close((__FILE(stream))->fd) == -1) return -1; } |
