diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-06-05 01:50:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-06-05 01:50:35 +0000 |
commit | 17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8 (patch) | |
tree | a98d7127db6e9a733e0978668f539d211b2638c5 /src/common/fakepoll.c | |
parent | 42569ffd0fc659d81093bc1d7b0fe5171e5738cf (diff) | |
download | tor-17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8.tar tor-17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8.tar.gz |
Make tor build on win32 again; handle locking for server
svn:r1948
Diffstat (limited to 'src/common/fakepoll.c')
-rw-r--r-- | src/common/fakepoll.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/fakepoll.c b/src/common/fakepoll.c index 46dbe85e2..f23c20e65 100644 --- a/src/common/fakepoll.c +++ b/src/common/fakepoll.c @@ -11,6 +11,9 @@ #include "orconfig.h" #include "fakepoll.h" +#define MAXCONNECTIONS 10000 /* XXXX copied from or.h */ +#define FD_SETSIZE MAXCONNECTIONS + #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif @@ -47,8 +50,6 @@ tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout) } #else -#define FD_SETSIZE MAXCONNECTIONS - int tor_poll(struct pollfd *ufds, unsigned int nfds, int timeout) { |