use libc-internal malloc for pthread_atfork
[musl] / src / thread / pthread_atfork.c
index 6d348ac..26d3254 100644 (file)
@@ -3,6 +3,11 @@
 #include "libc.h"
 #include "lock.h"
 
+#define malloc __libc_malloc
+#define calloc undef
+#define realloc undef
+#define free undef
+
 static struct atfork_funcs {
        void (*prepare)(void);
        void (*parent)(void);