Index: src/OFStreamObserver.m ================================================================== --- src/OFStreamObserver.m +++ src/OFStreamObserver.m @@ -376,12 +376,14 @@ #ifdef OF_HAVE_POLL fds_c = [fds cArray]; nfds = [fds count]; +# ifdef OPEN_MAX if (nfds > OPEN_MAX) @throw [OFOutOfRangeException newWithClass: isa]; +# endif if (poll(fds_c, (nfds_t)nfds, timeout) < 1) return NO; for (i = 0; i < nfds; i++) {