X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/8ad1528b69655e99ce77d52df90fadeb07b1153c..8150077d0a10c34bcc4ffd1df89a21028b98a7c9:/Mach/Inject.cpp diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index 29d1848..8679e03 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2010 Jay Freeman (saurik) + * Copyright (C) 2009-2012 Jay Freeman (saurik) */ /* GNU Lesser General Public License, Version 3 {{{ */ @@ -47,6 +47,10 @@ void InjectLibrary(pid_t pid) { Baton *baton(reinterpret_cast(local)); baton->__pthread_set_self = &__pthread_set_self; + baton->pthread_create = &pthread_create; + + baton->mach_thread_self = &mach_thread_self; + baton->thread_terminate = &thread_terminate; baton->dlerror = &dlerror; baton->dlsym = &dlsym;