Index: src/OFKernelEventObserver_select.m ================================================================== --- src/OFKernelEventObserver_select.m +++ src/OFKernelEventObserver_select.m @@ -15,10 +15,15 @@ */ #define __NO_EXT_QNX #include "config.h" + +#ifdef _WIN32 +/* Win32 has a ridiculous default of 64, even though it supports much more. */ +# define FD_SETSIZE 1024 +#endif #include #include #include @@ -47,20 +52,24 @@ return self; } - (void)OF_addFileDescriptorForReading: (int)fd { +#ifndef _WIN32 if (fd >= FD_SETSIZE) @throw [OFOutOfRangeException exception]; +#endif FD_SET(fd, &_readFDs); } - (void)OF_addFileDescriptorForWriting: (int)fd { +#ifndef _WIN32 if (fd >= FD_SETSIZE) @throw [OFOutOfRangeException exception]; +#endif FD_SET(fd, &_writeFDs); } - (void)OF_removeFileDescriptorForReading: (int)fd