X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/6465356a983ac139f81d3b7913cdb548477c346c..refs/heads/master:/sys/_libc_fork_child.c diff --git a/sys/_libc_fork_child.c b/sys/_libc_fork_child.c index 7925da8..e6c2b57 100644 --- a/sys/_libc_fork_child.c +++ b/sys/_libc_fork_child.c @@ -24,13 +24,18 @@ * _libc_fork_child() is called from Libsystem's libSystem_atfork_child() */ #include -#include "CrashReporterClient.h" +#if __has_include() +#include +#else +#define CRSetCrashLogMessage(...) +#endif + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wstrict-prototypes" extern void _arc4_fork_child(); -#if !TARGET_IPHONE_SIMULATOR extern void _init_clock_port(void); -#endif -extern void _dirhelper_fork_child(void); +extern void __environ_lock_fork_child(); void _libc_fork_child(void); // todo: private_extern? void @@ -39,8 +44,7 @@ _libc_fork_child(void) CRSetCrashLogMessage("crashed on child side of fork pre-exec"); _arc4_fork_child(); -#if !TARGET_IPHONE_SIMULATOR _init_clock_port(); -#endif - _dirhelper_fork_child(); + __environ_lock_fork_child(); } +#pragma clang diagnostic pop