clean up handling of thread/nothread mode, locking
[musl] / src / stdio / flockfile.c
1 #include "stdio_impl.h"
2 #include "pthread_impl.h"
3
4 void flockfile(FILE *f)
5 {
6         if (!libc.threaded) pthread_self();
7         __lockfile(f);
8 }