adjust fopencookie structure tag for ABI-compat
[musl] / src / thread / pthread_atfork.c
index 95fce20..a40d7f6 100644 (file)
@@ -8,7 +8,7 @@ static struct atfork_funcs {
        struct atfork_funcs *prev, *next;
 } *funcs;
 
-static int lock[2];
+static volatile int lock[2];
 
 void __fork_handler(int who)
 {