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/epoll.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/epoll.hpp') diff --git a/src/epoll.hpp b/src/epoll.hpp index 7e5195e..dc6b3ed 100644 --- a/src/epoll.hpp +++ b/src/epoll.hpp @@ -21,9 +21,9 @@ #ifndef __ZMQ_EPOLL_HPP_INCLUDED__ #define __ZMQ_EPOLL_HPP_INCLUDED__ -#include "platform.hpp" - -#ifdef ZMQ_HAVE_LINUX +// poller.hpp decides which polling mechanism to use. +#include "poller.hpp" +#if defined ZMQ_USE_EPOLL #include #include @@ -89,6 +89,8 @@ namespace zmq const epoll_t &operator = (const epoll_t&); }; + typedef epoll_t poller_t; + } #endif -- cgit v1.2.3