libc_pthread_fix

This commit is contained in:
2018-01-03 23:15:46 +01:00
parent c0907f494b
commit 7f03957e75

View File

@@ -6,9 +6,14 @@
#include <unistd.h>
#ifdef __weak_alias
__weak_alias(__fork, _fork)
__weak_alias(fork, _fork)
/* Allow libc to override with definition from pthread_atfork, while defining
* the symbol for libminc */
__weak_alias(_fork, __fork)
#endif
pid_t __fork(void); /* LSC, quiet prototype not found warning. */
pid_t __fork(void)
{
message m;