diff options
Diffstat (limited to '')
-rw-r--r-- | libbb/xfuncs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index c365fb8be..7df1a4cd3 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -221,7 +221,12 @@ off_t FAST_FUNC fdlength(int fd) | |||
221 | 221 | ||
222 | int FAST_FUNC bb_putchar_stderr(char ch) | 222 | int FAST_FUNC bb_putchar_stderr(char ch) |
223 | { | 223 | { |
224 | #if ENABLE_PLATFORM_MINGW32 && !defined(_UCRT) | ||
225 | // Workaround for problems with stderr in MSVCRT | ||
226 | return fputc(ch, stderr); | ||
227 | #else | ||
224 | return write(STDERR_FILENO, &ch, 1); | 228 | return write(STDERR_FILENO, &ch, 1); |
229 | #endif | ||
225 | } | 230 | } |
226 | 231 | ||
227 | ssize_t FAST_FUNC full_write1_str(const char *str) | 232 | ssize_t FAST_FUNC full_write1_str(const char *str) |