diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-07-24 18:13:29 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-07-24 18:13:29 +0200 |
commit | f716b571baf59c1b622c7666bb8bf2905126a3d4 (patch) | |
tree | e674579a8fe13664ef5254cfc1c591c6be870426 /src/poll.cpp | |
parent | 0e71b111f4c413e235978698e8a281acab3bb06e (diff) |
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>
Diffstat (limited to 'src/poll.cpp')
-rw-r--r-- | src/poll.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/poll.cpp b/src/poll.cpp index 6a84d2e..9d1978b 100644 --- a/src/poll.cpp +++ b/src/poll.cpp @@ -18,13 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#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 +#include "poll.hpp" +#if defined ZMQ_USE_POLL #include <sys/types.h> #include <sys/time.h> |