X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fexit%2Fatexit.c;h=160d277aeb76a3837f856052ec9b93653eabdb2b;hb=370679ba984d8a466d635234dc7a3084e98c0071;hp=2b58b8bbf7416ad378f0068553417f9c50ff9c3f;hpb=57243b30214656e7dd9fff509a1b6370b712f863;p=musl diff --git a/src/exit/atexit.c b/src/exit/atexit.c index 2b58b8bb..160d277a 100644 --- a/src/exit/atexit.c +++ b/src/exit/atexit.c @@ -1,6 +1,7 @@ #include #include #include "libc.h" +#include "lock.h" /* Ensure that at least 32 atexit handlers can be registered without malloc */ #define COUNT 32 @@ -13,7 +14,7 @@ static struct fl } builtin, *head; static int slot; -static volatile int lock[2]; +static volatile int lock[1]; void __funcs_on_exit() {