Index: src/OFRunLoop.m ================================================================== --- src/OFRunLoop.m +++ src/OFRunLoop.m @@ -23,10 +23,11 @@ #import "OFThread.h" #import "OFSortedList.h" #import "OFTimer.h" #import "OFDate.h" +#import "autorelease.h" #import "macros.h" static OFTLSKey *currentRunLoopKey; static OFRunLoop *mainRunLoop; Index: src/OFTCPSocket.m ================================================================== --- src/OFTCPSocket.m +++ src/OFTCPSocket.m @@ -48,10 +48,11 @@ #import "OFListenFailedException.h" #import "OFNotConnectedException.h" #import "OFNotImplementedException.h" #import "OFSetOptionFailedException.h" +#import "autorelease.h" #import "macros.h" #ifndef INVALID_SOCKET # define INVALID_SOCKET -1 #endif @@ -296,11 +297,11 @@ { void *pool = objc_autoreleasePoolPush(); OFRunLoop *runLoop = [OFRunLoop currentRunLoop]; [[OFThread threadWithObject: self - block: ^ (id s) { + block: ^ id (id s) { void *pool2 = objc_autoreleasePoolPush(); OFThread *connectThread = [OFThread currentThread]; OFTimer *timer; [s connectToHost: host