summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 05:32:17 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 05:32:17 +0100
commitcf2f2a833d743aeff5281d1296ac2b3d852d61a1 (patch)
tree4355b6c3420ccf7a7f11d861f31c85748a60aba0
parent08237cc3cd45313a5a5e84acd61d96b0354ecb5b (diff)
Fixing __sinit, by properly defining stdin, stdout, and stderr.
-rw-r--r--libc/src/stdio.c3
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;