summaryrefslogtreecommitdiff
path: root/src/stdio/flockfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/flockfile.c')
-rw-r--r--src/stdio/flockfile.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/stdio/flockfile.c b/src/stdio/flockfile.c
index 440a36a9..0d4c92c2 100644
--- a/src/stdio/flockfile.c
+++ b/src/stdio/flockfile.c
@@ -3,9 +3,6 @@
void flockfile(FILE *f)
{
- if (!libc.lockfile) {
- pthread_self();
- libc.lockfile = __lockfile;
- }
+ if (!libc.threaded) pthread_self();
__lockfile(f);
}