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/kqueue.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/kqueue.cpp') diff --git a/src/kqueue.cpp b/src/kqueue.cpp index e28ecd7..bb42d8f 100644 --- a/src/kqueue.cpp +++ b/src/kqueue.cpp @@ -18,10 +18,8 @@ along with this program. If not, see . */ -#include "platform.hpp" - -#if defined ZMQ_HAVE_FREEBSD || defined ZMQ_HAVE_OPENBSD ||\ - defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_NETBSD +#include "kqueue.hpp" +#if defined ZMQ_USE_KQUEUE #include #include @@ -189,6 +187,4 @@ void zmq::kqueue_t::worker_routine (void *arg_) ((kqueue_t*) arg_)->loop (); } -// Don't pollute namespace with defines local to this file -#undef kevent_udata_t #endif -- cgit v1.2.3