@@ -36,15 +36,16 @@ # include #endif #import "OFStream.h" #import "OFStream+Private.h" -#import "OFString.h" #import "OFData.h" -#import "OFSystemInfo.h" +#import "OFKernelEventObserver.h" +#import "OFRunLoop+Private.h" #import "OFRunLoop.h" -#import "OFRunLoop+Private.h" +#import "OFString.h" +#import "OFSystemInfo.h" #import "OFInvalidArgumentException.h" #import "OFInvalidFormatException.h" #import "OFNotImplementedException.h" #import "OFOutOfMemoryException.h" @@ -1671,11 +1672,11 @@ bool readImplemented = false, writeImplemented = false; @try { int readFlags; - readFlags = fcntl([self fileDescriptorForReading], F_GETFL); + readFlags = fcntl([(id)self fileDescriptorForReading], F_GETFL); readImplemented = true; if (readFlags == -1) @throw [OFSetOptionFailedException @@ -1685,11 +1686,11 @@ if (enable) readFlags &= ~O_NONBLOCK; else readFlags |= O_NONBLOCK; - if (fcntl([self fileDescriptorForReading], F_SETFL, + if (fcntl([(id)self fileDescriptorForReading], F_SETFL, readFlags) == -1) @throw [OFSetOptionFailedException exceptionWithObject: self errNo: errno]; } @catch (OFNotImplementedException *e) { @@ -1696,11 +1697,12 @@ } @try { int writeFlags; - writeFlags = fcntl([self fileDescriptorForWriting], F_GETFL); + writeFlags = + fcntl([(id)self fileDescriptorForWriting], F_GETFL); writeImplemented = true; if (writeFlags == -1) @throw [OFSetOptionFailedException @@ -1710,11 +1712,11 @@ if (enable) writeFlags &= ~O_NONBLOCK; else writeFlags |= O_NONBLOCK; - if (fcntl([self fileDescriptorForWriting], F_SETFL, + if (fcntl([(id)self fileDescriptorForWriting], F_SETFL, writeFlags) == -1) @throw [OFSetOptionFailedException exceptionWithObject: self errNo: errno]; } @catch (OFNotImplementedException *e) {