diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-11-04 13:12:40 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-11-04 13:12:40 +0100 |
commit | 2246689c8fcf37cd69bd8098b21dc28a9abbcdeb (patch) | |
tree | 70850ef0c39fb6f13ad0f2a957e33397723b4868 /src | |
parent | b90e621329688c83f21f26bbe0367966a245e607 (diff) |
FD_SETSIZE for internal polling defaults to 1024
If, when compiling 0MQ you don't set FD_SETSIZE,
it defaults to 1024 rather than to 64.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/select.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/select.cpp b/src/select.cpp index 78d3afd..36b04ea 100644 --- a/src/select.cpp +++ b/src/select.cpp @@ -23,6 +23,9 @@ #include <algorithm> #ifdef ZMQ_HAVE_WINDOWS +#if !defined FD_SETSIZE +#define FD_SETSIZE 1024 +#endif #include "winsock2.h" #elif defined ZMQ_HAVE_HPUX #include <sys/param.h> |