aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 24d8832b2f3..d940acc4e05 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2670,6 +2670,13 @@ void
2670errputc (int c) 2670errputc (int c)
2671{ 2671{
2672 fputc_unlocked (c, errstream ()); 2672 fputc_unlocked (c, errstream ());
2673
2674#ifdef WINDOWSNT
2675 /* Flush stderr after outputting a newline since stderr is fully
2676 buffered when redirected to a pipe, contrary to POSIX. */
2677 if (c == '\n')
2678 fflush_unlocked (stderr);
2679#endif
2673} 2680}
2674 2681
2675void 2682void