Index: src/OFStdIOStream.m ================================================================== --- src/OFStdIOStream.m +++ src/OFStdIOStream.m @@ -37,11 +37,11 @@ #import "OFOutOfRangeException.h" #import "OFReadFailedException.h" #import "OFWriteFailedException.h" -#ifdef OF_MORPHOS +#if defined(OF_MORPHOS) && !defined(OF_IXEMUL) # define BOOL EXEC_BOOL # include # include # undef BOOL @@ -96,11 +96,11 @@ @implementation OFStdIOStream #ifndef OF_WINDOWS + (void)load { -# ifndef OF_MORPHOS +# if !defined(OF_MORPHOS) || defined(OF_IXEMUL) of_stdin = [[OFStdIOStream alloc] of_initWithFileDescriptor: 0]; of_stdout = [[OFStdIOStream alloc] of_initWithFileDescriptor: 1]; of_stderr = [[OFStdIOStream alloc] of_initWithFileDescriptor: 2]; # else of_stdin = [[OFStdIOStream alloc] of_initWithFileDescriptor: Input()]; @@ -186,11 +186,11 @@ requestedLength: length errNo: errno]; #endif } -#if !defined(OF_WINDOWS) && !defined(OF_MORPHOS) +#if !defined(OF_WINDOWS) && (!defined(OF_MORPHOS) || defined(OF_IXEMUL)) - (int)fileDescriptorForReading { return _fd; } Index: src/platform.h ================================================================== --- src/platform.h +++ src/platform.h @@ -94,10 +94,13 @@ # define OF_DRAGONFLYBSD #elif defined(__HAIKU__) # define OF_HAIKU #elif defined(__MORPHOS__) # define OF_MORPHOS +# ifdef __ixemul__ +# define OF_IXEMUL +# endif #elif defined(__sun__) # define OF_SOLARIS #elif defined(__QNX__) # define OF_QNX #elif defined(__wii__)