diff --git a/mach_inject_bundle_stub/mach_inject_bundle_stub.c b/mach_inject_bundle_stub/mach_inject_bundle_stub.c index 6d0e988..9968ad0 100644 --- a/mach_inject_bundle_stub/mach_inject_bundle_stub.c +++ b/mach_inject_bundle_stub/mach_inject_bundle_stub.c @@ -63,8 +63,9 @@ INJECT_ENTRY( // On intel, per-pthread data is a zone of data that must be allocated. // if not, all function trying to access per-pthread data (all mig functions for instance) // will crash. - extern void __pthread_set_self(char*); - __pthread_set_self(dummy_pthread_struct); + // on macOS Serria, should use _pthread_set_self from libSystem.B.dylb + extern void _pthread_set_self(char*); + _pthread_set_self(dummy_pthread_struct); #endif // fprintf(stderr, "mach_inject_bundle: entered in %s, codeOffset: %td, param: %p, paramSize: %lu\n",