summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fgetwc.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fgetwc.c')
-rw-r--r--newlib/libc/stdio/fgetwc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fgetwc.c b/newlib/libc/stdio/fgetwc.c
index 38a79bc7c..0eaaecb2f 100644
--- a/newlib/libc/stdio/fgetwc.c
+++ b/newlib/libc/stdio/fgetwc.c
@@ -164,10 +164,10 @@ _DEFUN(_fgetwc_r, (ptr, fp),
{
wint_t r;
- _flockfile (fp);
+ _newlib_flockfile_start (fp);
ORIENT(fp, 1);
r = __fgetwc (ptr, fp);
- _funlockfile (fp);
+ _newlib_flockfile_end (fp);
return r;
}