]> arthur.barton.de Git - ngircd-alex.git/commitdiff
removed errouneous FD_SETSIZE limit when not using select()
authorFlorian Westphal <fw@strlen.de>
Sat, 16 Dec 2006 22:48:34 +0000 (22:48 +0000)
committerFlorian Westphal <fw@strlen.de>
Sat, 16 Dec 2006 22:48:34 +0000 (22:48 +0000)
src/ngircd/io.c

index e331464647d5c6b9e8141febb591fa426de8311d..61f73fdb2614991bb261faeded5c752b46170e79 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: io.c,v 1.21 2006/09/19 18:21:30 fw Exp $";
+static char UNUSED id[] = "$Id: io.c,v 1.22 2006/12/16 22:48:34 fw Exp $";
 
 #include <assert.h>
 #include <stdlib.h>
@@ -285,7 +285,7 @@ io_event_create(int fd, short what, void (*cbfunc) (int, short))
        io_event *i;
 
        assert(fd >= 0);
-#if defined(IO_USE_SELECT) || defined(FD_SETSIZE)
+#if defined(IO_USE_SELECT) && defined(FD_SETSIZE)
        if (fd >= FD_SETSIZE) {
                Log(LOG_ERR,
                    "fd %d exceeds FD_SETSIZE (%u) (select can't handle more file descriptors)",