From: Roger Dingledine Date: Wed, 2 Jun 2004 19:44:23 +0000 (+0000) Subject: define FD_SETSIZE in all cases, not just win32 X-Git-Tag: tor-0.0.7rc1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4db9e9aa8ad1adb8f6b20e73c3831968c99b60c3;p=thirdparty%2Ftor.git define FD_SETSIZE in all cases, not just win32 svn:r1937 --- diff --git a/src/common/fakepoll.c b/src/common/fakepoll.c index 8fafb01796..46dbe85e2d 100644 --- a/src/common/fakepoll.c +++ b/src/common/fakepoll.c @@ -46,10 +46,8 @@ tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout) 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)