diff options
author | Roger Dingledine <arma@torproject.org> | 2004-06-02 19:44:23 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-06-02 19:44:23 +0000 |
commit | 4db9e9aa8ad1adb8f6b20e73c3831968c99b60c3 (patch) | |
tree | e5185973e0775b023a082c2df4d6071129421845 /src | |
parent | 605e10a650ee05c9b019ff3b8f4edfb3b6ad8f16 (diff) | |
download | tor-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.c | 4 |
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) |