Index: src/OFThread.m ================================================================== --- src/OFThread.m +++ src/OFThread.m @@ -51,12 +51,14 @@ static OFList *TLSKeys; static of_tlskey_t threadSelf; static id -call_main(OFThread *thread) +call_main(id object) { + OFThread *thread = (OFThread*)object; + #if defined(OF_GNU_RUNTIME) || defined(OF_OLD_GNU_RUNTIME) objc_thread_add(); #endif if (!of_tlskey_set(threadSelf, thread))