From f716b571baf59c1b622c7666bb8bf2905126a3d4 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 24 Jul 2011 18:13:29 +0200 Subject: 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 --- src/select.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/select.hpp') diff --git a/src/select.hpp b/src/select.hpp index c88dd71..55bc883 100644 --- a/src/select.hpp +++ b/src/select.hpp @@ -21,6 +21,10 @@ #ifndef __ZMQ_SELECT_HPP_INCLUDED__ #define __ZMQ_SELECT_HPP_INCLUDED__ +// poller.hpp decides which polling mechanism to use. +#include "poller.hpp" +#if defined ZMQ_USE_SELECT + #include "platform.hpp" #include @@ -110,7 +114,10 @@ namespace zmq const select_t &operator = (const select_t&); }; + typedef select_t poller_t; + } #endif +#endif -- cgit v1.2.3