-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
christos
committed
Jul 14, 2020
1 parent
ede1c3a
commit 0502ede
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$NetBSD: patch-tc.alloc.c,v 1.3 2020/07/14 21:48:30 christos Exp $ | ||
|
||
Fix static linking since NetBSD's libc needs these for pthread_atfork(); | ||
|
||
--- tc.alloc.c.orig 2019-12-04 12:51:54.000000000 -0500 | ||
+++ tc.alloc.c 2020-07-14 17:42:39.103744313 -0400 | ||
@@ -655,3 +655,13 @@ | ||
USE(c); | ||
USE(v); | ||
} | ||
+ | ||
+#ifndef SYSMALLOC | ||
+/* jemalloc defines these */ | ||
+void _malloc_prefork(void); | ||
+void _malloc_postfork(void); | ||
+void _malloc_postfork_child(void); | ||
+void _malloc_prefork(void) {} | ||
+void _malloc_postfork(void) {} | ||
+void _malloc_postfork_child(void) {} | ||
+#endif |