aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-06-02 19:44:23 +0000
committerRoger Dingledine <arma@torproject.org>2004-06-02 19:44:23 +0000
commit4db9e9aa8ad1adb8f6b20e73c3831968c99b60c3 (patch)
treee5185973e0775b023a082c2df4d6071129421845 /src
parent605e10a650ee05c9b019ff3b8f4edfb3b6ad8f16 (diff)
downloadtor-4db9e9aa8ad1adb8f6b20e73c3831968c99b60c3.tar
tor-4db9e9aa8ad1adb8f6b20e73c3831968c99b60c3.tar.gz
define FD_SETSIZE in all cases, not just win32
svn:r1937
Diffstat (limited to 'src')
-rw-r--r--src/common/fakepoll.c4
1 files changed, 1 insertions, 3 deletions
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)