summaryrefslogtreecommitdiff
path: root/src/thread/pthread_atfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_atfork.c')
-rw-r--r--src/thread/pthread_atfork.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/thread/pthread_atfork.c b/src/thread/pthread_atfork.c
index 6d348ac8..26d32543 100644
--- a/src/thread/pthread_atfork.c
+++ b/src/thread/pthread_atfork.c
@@ -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);