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>
This commit is contained in:
Martin Sustrik
2011-07-24 18:13:29 +02:00
parent 0e71b111f4
commit f716b571ba
11 changed files with 74 additions and 64 deletions

View File

@@ -21,9 +21,9 @@
#ifndef __ZMQ_DEVPOLL_HPP_INCLUDED__
#define __ZMQ_DEVPOLL_HPP_INCLUDED__
#include "platform.hpp"
#if defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_HPUX
// poller.hpp decides which polling mechanism to use.
#include "poller.hpp"
#if defined ZMQ_USE_DEVPOLL
#include <vector>
@@ -93,6 +93,8 @@ namespace zmq
const devpoll_t &operator = (const devpoll_t&);
};
typedef devpoll_t poller_t;
}
#endif