author | Rich Felker <dalias@aerifal.cx> | 2018年10月17日 23:57:28 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018年10月18日 00:32:20 -0400 |
commit | d8f2efa708a027132d443f45a8c98a0c7c1b2d77 (patch) | |
tree | 887db37b661d946d28aa5f542e5401318bd75ff1 /src/stdio/stderr.c | |
parent | d664061adb4d7f6647ab2059bc351daa394bf5da (diff) | |
download | musl-d8f2efa708a027132d443f45a8c98a0c7c1b2d77.tar.gz |
-rw-r--r-- | src/stdio/stderr.c | 8 |
diff --git a/src/stdio/stderr.c b/src/stdio/stderr.c index 229c8651..f2bc4648 100644 --- a/src/stdio/stderr.c +++ b/src/stdio/stderr.c @@ -1,7 +1,9 @@ #include "stdio_impl.h" +#undef stderr + static unsigned char buf[UNGET]; -static FILE f = { +hidden FILE __stderr_FILE = { .buf = buf+UNGET, .buf_size = 0, .fd = 2, @@ -12,5 +14,5 @@ static FILE f = { .close = __stdio_close, .lock = -1, }; -FILE *const stderr = &f; -FILE *volatile __stderr_used = &f; +FILE *const stderr = &__stderr_FILE; +FILE *volatile __stderr_used = &__stderr_FILE; |