Add sys-libs/musl pamalloc patch.

This commit is contained in:
inference 2022-06-18 00:16:38 +01:00
parent f502974384
commit d5dfaa5ac6

View File

@ -0,0 +1,14 @@
diff --git a/src/thread/pthread_atfork.c b/src/thread/pthread_atfork.c
index 76497401..f4e2cf7e 100644
--- a/src/thread/pthread_atfork.c
+++ b/src/thread/pthread_atfork.c
@@ -2,6 +2,8 @@
#include "libc.h"
#include "lock.h"
+#define malloc __libc_malloc
+
static struct atfork_funcs {
void (*prepare)(void);
void (*parent)(void);