[or-cvs] define FD_SETSIZE in all cases, not just win32
Roger Dingledine
arma at seul.org
Wed Jun 2 19:44:25 UTC 2004
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common
Modified Files:
fakepoll.c
Log Message:
define FD_SETSIZE in all cases, not just win32
Index: fakepoll.c
===================================================================
RCS file: /home/or/cvsroot/src/common/fakepoll.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- fakepoll.c 10 May 2004 03:53:24 -0000 1.29
+++ fakepoll.c 2 Jun 2004 19:44:23 -0000 1.30
@@ -46,10 +46,8 @@
return poll(ufds,nfds,timeout);
}
#else
-/* by default, windows handles only 64 fd's */
-#if defined(MS_WINDOWS) && !defined(FD_SETSIZE)
+
#define FD_SETSIZE MAXCONNECTIONS
-#endif
int
tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout)
More information about the tor-commits
mailing list