From 4db9e9aa8ad1adb8f6b20e73c3831968c99b60c3 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 2 Jun 2004 19:44:23 +0000 Subject: define FD_SETSIZE in all cases, not just win32 svn:r1937 --- src/common/fakepoll.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/fakepoll.c b/src/common/fakepoll.c index 8fafb0179..46dbe85e2 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) -- cgit v1.2.3