aboutsummaryrefslogtreecommitdiff
path: root/libio/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/stdio.c')
-rw-r--r--libio/stdio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libio/stdio.c b/libio/stdio.c
index 79d605d..3b897ce 100644
--- a/libio/stdio.c
+++ b/libio/stdio.c
@@ -29,13 +29,15 @@
#undef stdin
#undef stdout
#undef stderr
-FILE *stdin = (FILE *) &_IO_2_1_stdin_;
-FILE *stdout = (FILE *) &_IO_2_1_stdout_;
-FILE *stderr = (FILE *) &_IO_2_1_stderr_;
+_IO_FILE *stdin = (FILE *) &_IO_2_1_stdin_;
+_IO_FILE *stdout = (FILE *) &_IO_2_1_stdout_;
+_IO_FILE *stderr = (FILE *) &_IO_2_1_stderr_;
#undef _IO_stdin
#undef _IO_stdout
#undef _IO_stderr
+#ifdef _LIBC
strong_alias (stdin, _IO_stdin);
strong_alias (stdout, _IO_stdout);
strong_alias (stderr, _IO_stderr);
+#endif