summaryrefslogtreecommitdiff
path: root/src/select.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-07-24 18:13:29 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-07-24 18:13:29 +0200
commitf716b571baf59c1b622c7666bb8bf2905126a3d4 (patch)
treee674579a8fe13664ef5254cfc1c591c6be870426 /src/select.cpp
parent0e71b111f4c413e235978698e8a281acab3bb06e (diff)
Only one polling mechanism is compiled
Till now wrappers for all the polling mechanisms available on the given platform were compiled, although only one of them was used. This patch compiles just the used one. This can make libzmq binary more concise. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/select.cpp')
-rw-r--r--src/select.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/select.cpp b/src/select.cpp
index 5d5ce5d..0ecdcd7 100644
--- a/src/select.cpp
+++ b/src/select.cpp
@@ -18,6 +18,9 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "select.hpp"
+#if defined ZMQ_USE_SELECT
+
#include "platform.hpp"
#if defined ZMQ_HAVE_WINDOWS
#include "windows.hpp"
@@ -35,7 +38,6 @@
#include <string.h>
#include <algorithm>
-#include "select.hpp"
#include "err.hpp"
#include "config.hpp"
#include "i_poll_events.hpp"
@@ -209,3 +211,4 @@ bool zmq::select_t::is_retired_fd (const fd_entry_t &entry)
return (entry.fd == retired_fd);
}
+#endif