X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_atfork.c;h=764974016576d6fe816f89da88220e78b86f46af;hb=0296baff0ed5199612768db8bdf653b1930bbc66;hp=a40d7f63287079c2ce538360305b86e7174b06e9;hpb=56fbaa3bbe73f12af2bfbbcf2adb196e6f9fe264;p=musl diff --git a/src/thread/pthread_atfork.c b/src/thread/pthread_atfork.c index a40d7f63..76497401 100644 --- a/src/thread/pthread_atfork.c +++ b/src/thread/pthread_atfork.c @@ -1,5 +1,6 @@ #include #include "libc.h" +#include "lock.h" static struct atfork_funcs { void (*prepare)(void); @@ -8,7 +9,7 @@ static struct atfork_funcs { struct atfork_funcs *prev, *next; } *funcs; -static volatile int lock[2]; +static volatile int lock[1]; void __fork_handler(int who) {