summaryrefslogtreecommitdiff
path: root/src/stdio/stdin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/stdin.c')
-rw-r--r--src/stdio/stdin.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/stdio/stdin.c b/src/stdio/stdin.c
index 171ff22a..5aa5262c 100644
--- a/src/stdio/stdin.c
+++ b/src/stdio/stdin.c
@@ -1,7 +1,9 @@
#include "stdio_impl.h"
+#undef stdin
+
static unsigned char buf[BUFSIZ+UNGET];
-static FILE f = {
+hidden FILE __stdin_FILE = {
.buf = buf+UNGET,
.buf_size = sizeof buf-UNGET,
.fd = 0,
@@ -11,5 +13,5 @@ static FILE f = {
.close = __stdio_close,
.lock = -1,
};
-FILE *const stdin = &f;
-FILE *volatile __stdin_used = &f;
+FILE *const stdin = &__stdin_FILE;
+FILE *volatile __stdin_used = &__stdin_FILE;