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/poll.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/poll.hpp') diff --git a/src/poll.hpp b/src/poll.hpp index 3a18d03..42f3af1 100644 --- a/src/poll.hpp +++ b/src/poll.hpp @@ -21,13 +21,9 @@ #ifndef __ZMQ_POLL_HPP_INCLUDED__ #define __ZMQ_POLL_HPP_INCLUDED__ -#include "platform.hpp" - -#if defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_FREEBSD ||\ - defined ZMQ_HAVE_OPENBSD || defined ZMQ_HAVE_SOLARIS ||\ - defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_QNXNTO ||\ - defined ZMQ_HAVE_HPUX || defined ZMQ_HAVE_AIX ||\ - defined ZMQ_HAVE_NETBSD +// poller.hpp decides which polling mechanism to use. +#include "poller.hpp" +#if defined ZMQ_USE_POLL #include #include @@ -97,6 +93,8 @@ namespace zmq const poll_t &operator = (const poll_t&); }; + typedef poll_t poller_t; + } #endif -- cgit v1.2.3