diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-02-05 05:32:17 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-02-05 05:32:17 +0100 |
commit | cf2f2a833d743aeff5281d1296ac2b3d852d61a1 (patch) | |
tree | 4355b6c3420ccf7a7f11d861f31c85748a60aba0 /libc | |
parent | 08237cc3cd45313a5a5e84acd61d96b0354ecb5b (diff) |
Fixing __sinit, by properly defining stdin, stdout, and stderr.
Diffstat (limited to 'libc')
-rw-r--r-- | libc/src/stdio.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <stdio.h> -FILE * stdin, * stdout, * stderr; +static FILE _stdin, _stdout, _stderr; +FILE * stdin = &_stdin, * stdout = &_stdout, * stderr = &_stderr; void __sinit(struct _reent * reent) { stdin->fd = 0; |