X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fflockfile.c;h=0d4c92c24d9de3793f28870b60020b8bd5001d99;hb=77f15d108ee021d4dfbeebe793661131c4470d4d;hp=440a36a9aecb9bfb1a08907d2c91ab9513da19e5;hpb=4d9cc0b399b1d6a146cb45e64c74b7ee562de7a6;p=musl 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); }