diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-27 10:26:44 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-27 10:26:44 +0000 |
commit | a27b570788cdac4eb3e90f059e721859d25418e5 (patch) | |
tree | dd825c19257a5639085d97daf95fe0a39dd69908 /src/common/fakepoll.c | |
parent | 42b2f341a4e03080161c3f9f61685a97771d02fa (diff) | |
download | tor-a27b570788cdac4eb3e90f059e721859d25418e5.tar.gz tor-a27b570788cdac4eb3e90f059e721859d25418e5.zip |
bugfix for win32 with lots of users
plus general cleanup on switch_id()
svn:r684
Diffstat (limited to 'src/common/fakepoll.c')
-rw-r--r-- | src/common/fakepoll.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/fakepoll.c b/src/common/fakepoll.c index cca6e44215..e16f2177ea 100644 --- a/src/common/fakepoll.c +++ b/src/common/fakepoll.c @@ -24,6 +24,11 @@ #include <winsock.h> #endif +/* by default, windows handles only 64 fd's */ +#if defined(MS_WINDOWS) && !defined(FD_SETSIZE) +#define FD_SETSIZE MAXCONNECTIONS +#endif + #include "util.h" int |