diff options
Diffstat (limited to 'newlib/libc/stdio/fputwc.c')
-rw-r--r-- | newlib/libc/stdio/fputwc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/newlib/libc/stdio/fputwc.c b/newlib/libc/stdio/fputwc.c index 12a6170..e2aadef 100644 --- a/newlib/libc/stdio/fputwc.c +++ b/newlib/libc/stdio/fputwc.c @@ -181,5 +181,10 @@ fputwc (wchar_t wc, struct _reent *reent = _REENT; CHECK_INIT(reent, fp); - return _fputwc_r (reent, wc, fp); + wint_t r; + + _newlib_flockfile_start (fp); + r = __fputwc(reent, wc, fp); + _newlib_flockfile_end (fp); + return r; } |