eliminate dependence of perror on printf
[musl] / src / stdio / flockfile.c
index 1b6ef58..0d4c92c 100644 (file)
@@ -3,7 +3,6 @@
 
 void flockfile(FILE *f)
 {
-       pthread_self();
-       libc.lockfile = __lockfile;
+       if (!libc.threaded) pthread_self();
        __lockfile(f);
 }