diff options
Diffstat (limited to 'nptl/flockfile.c')
-rw-r--r-- | nptl/flockfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/flockfile.c b/nptl/flockfile.c index a82059f..db67768 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) |