diff options
Diffstat (limited to 'newlib/libc/stdio/clearerr.c')
-rw-r--r-- | newlib/libc/stdio/clearerr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/clearerr.c b/newlib/libc/stdio/clearerr.c index 861d9a2..6a1b0af 100644 --- a/newlib/libc/stdio/clearerr.c +++ b/newlib/libc/stdio/clearerr.c @@ -59,5 +59,7 @@ _VOID _DEFUN (clearerr, (fp), FILE * fp) { + _flockfile(fp); __sclearerr (fp); + _funlockfile(fp); } |