aboutsummaryrefslogtreecommitdiff
path: root/src/common/fakepoll.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-06-05 01:50:35 +0000
committerNick Mathewson <nickm@torproject.org>2004-06-05 01:50:35 +0000
commit17b5b3685f5f2f27b05d4e7f5b1dc78939a9f5e8 (patch)
treea98d7127db6e9a733e0978668f539d211b2638c5 /src/common/fakepoll.c
parent42569ffd0fc659d81093bc1d7b0fe5171e5738cf (diff)
downloadtor-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.c5
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)
{