aboutsummaryrefslogtreecommitdiff
path: root/nptl/flockfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/flockfile.c')
-rw-r--r--nptl/flockfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/flockfile.c b/nptl/flockfile.c
index a82059f2f1..db6776813c 100644
--- a/nptl/flockfile.c
+++ b/nptl/flockfile.c
@@ -20,12 +20,13 @@
#include <pthread.h>
#include <stdio.h>
#include <libio.h>
+#include <bits/stdio-lock.h>
void
flockfile (stream)
FILE *stream;
{
- pthread_mutex_lock (stream->_lock);
+ _IO_lock_lock (*stream->_lock);
}
strong_alias (flockfile, _IO_flockfile)