diff options
-rw-r--r-- | gnu/usr.bin/binutils/ld/ldmisc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/ldmisc.c b/gnu/usr.bin/binutils/ld/ldmisc.c index def598d639a..b4738503c0a 100644 --- a/gnu/usr.bin/binutils/ld/ldmisc.c +++ b/gnu/usr.bin/binutils/ld/ldmisc.c @@ -426,10 +426,14 @@ void einfo (const char *fmt, ...) { va_list arg; + char buf[BUFSIZ]; + setvbuf(stderr, buf, _IOFBF, sizeof(buf)); va_start (arg, fmt); vfinfo (stderr, fmt, arg); va_end (arg); + fflush(stderr); + setvbuf(stderr, NULL, _IONBF, 0); } void |