repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 8cb0e3af68905261df28ead55f20e3b4366461e8:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 8cb0e3af68905261df28ead55f20e3b4366461e8
Author: Florian Westphal 
Date:   Sat Dec 16 22:48:34 2006 +0000

    removed errouneous FD_SETSIZE limit when not using select()

diff --git a/src/ngircd/io.c b/src/ngircd/io.c
index e331464647d5c6b9e8141febb591fa426de8311d..
index ..61f73fdb2614991bb261faeded5c752b46170e79 100644
--- a/src/ngircd/io.c
+++ b/src/ngircd/io.c
@@ -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 
 #include 
@@ -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)",

-----END OF PAGE-----