From cf2f2a833d743aeff5281d1296ac2b3d852d61a1 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sat, 5 Feb 2011 05:32:17 +0100 Subject: Fixing __sinit, by properly defining stdin, stdout, and stderr. --- libc/src/stdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/src/stdio.c b/libc/src/stdio.c index eab9c7e..c705946 100644 --- a/libc/src/stdio.c +++ b/libc/src/stdio.c @@ -1,6 +1,7 @@ #include -FILE * stdin, * stdout, * stderr; +static FILE _stdin, _stdout, _stderr; +FILE * stdin = &_stdin, * stdout = &_stdout, * stderr = &_stderr; void __sinit(struct _reent * reent) { stdin->fd = 0; -- cgit v1.2.3