Index: dist/src/jemalloc.c =================================================================== RCS file: /cvsroot/src/external/bsd/jemalloc/dist/src/jemalloc.c,v retrieving revision 1.8 diff -u -r1.8 jemalloc.c --- dist/src/jemalloc.c 3 Oct 2019 16:10:23 -0000 1.8 +++ dist/src/jemalloc.c 1 Feb 2020 11:50:59 -0000 @@ -3200,6 +3200,14 @@ * malloc during fork(). */ +#if defined(__NetBSD__) +__strong_alias(__libc_mutex_init,jemalloc__init) +void +jemalloc__init(void) +{ + malloc_init(); +} +#else /* * If an application creates a thread before doing any allocation in the main * thread, then calls fork(2) in the main thread followed by memory allocation @@ -3220,6 +3228,7 @@ malloc_init(); } #endif +#endif #ifndef JEMALLOC_MUTEX_INIT_CB void