Add BOOL and bool for boolean (people use those).
[cycript.git] / Mach / Inject.cpp
index 29d1848664645e18c4b8be328c85d5bfd60ff764..8679e03a332c938e184dfff53b88532423de6ef3 100644 (file)
@@ -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<Baton *>(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;