X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fstdin.c;h=5aa5262c2a5c8822f9006431898887789421c6e1;hb=4d3a162d001a93edd285fb6603a883c30ae553ba;hp=476dc7088f2ea46af4e95f0607f7b7eb394e3d8a;hpb=dba68bf98fc708cea4c478278c889fc7ad802b00;p=musl diff --git a/src/stdio/stdin.c b/src/stdio/stdin.c index 476dc708..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 *const __stdin_used = &f; +FILE *const stdin = &__stdin_FILE; +FILE *volatile __stdin_used = &__stdin_FILE;