diff options
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 46dbe85e2d..f23c20e652 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) { |