X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/23e20b0053d7317ce3facd3fd38db8c73c2c380a..fc56b708803d28b949a9181528bb0da4d25b3b7b:/sys/_libc_fork_child.c diff --git a/sys/_libc_fork_child.c b/sys/_libc_fork_child.c index 73da105..e6c2b57 100644 --- a/sys/_libc_fork_child.c +++ b/sys/_libc_fork_child.c @@ -24,10 +24,18 @@ * _libc_fork_child() is called from Libsystem's libSystem_atfork_child() */ #include +#if __has_include() #include +#else +#define CRSetCrashLogMessage(...) +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wstrict-prototypes" extern void _arc4_fork_child(); extern void _init_clock_port(void); +extern void __environ_lock_fork_child(); void _libc_fork_child(void); // todo: private_extern? void @@ -37,4 +45,6 @@ _libc_fork_child(void) _arc4_fork_child(); _init_clock_port(); + __environ_lock_fork_child(); } +#pragma clang diagnostic pop