summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-11-04 13:12:40 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-11-04 13:12:40 +0100
commit2246689c8fcf37cd69bd8098b21dc28a9abbcdeb (patch)
tree70850ef0c39fb6f13ad0f2a957e33397723b4868
parentb90e621329688c83f21f26bbe0367966a245e607 (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>
-rw-r--r--src/select.cpp3
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>