about summary refs log tree commit diff
path: root/libio/iofgets.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofgets.c')
-rw-r--r--libio/iofgets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iofgets.c b/libio/iofgets.c
index 71d677c161..79ba1a9cd6 100644
--- a/libio/iofgets.c
+++ b/libio/iofgets.c
@@ -37,7 +37,7 @@ _IO_fgets (buf, n, fp)
   if (n <= 0)
     return NULL;
   __libc_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile, fp);
-  __flockfile (fp);
+  _IO_flockfile (fp);
   count = _IO_getline (fp, buf, n - 1, '\n', 1);
   if (count == 0 || (fp->_IO_file_flags & _IO_ERR_SEEN))
     result = NULL;