2
Copyright (c) 2010-2011 250bpm s.r.o.
3
Copyright (c) 2007-2009 iMatix Corporation
4
Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
6
This file is part of 0MQ.
8
0MQ is free software; you can redistribute it and/or modify it under
9
the terms of the GNU Lesser General Public License as published by
10
the Free Software Foundation; either version 3 of the License, or
11
(at your option) any later version.
13
0MQ is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU Lesser General Public License for more details.
18
You should have received a copy of the GNU Lesser General Public License
19
along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#ifndef __ZMQ_POLLER_HPP_INCLUDED__
23
#define __ZMQ_POLLER_HPP_INCLUDED__
25
#include "platform.hpp"
27
#if defined ZMQ_FORCE_SELECT
28
#define ZMQ_USE_SELECT
30
#elif defined ZMQ_FORCE_POLL
33
#elif defined ZMQ_FORCE_EPOLL
36
#elif defined ZMQ_FORCE_DEVPOLL
37
#define ZMQ_USE_DEVPOLL
38
#include "devpoll.hpp"
39
#elif defined ZMQ_FORCE_KQUEUE
40
#define ZMQ_USE_KQUEUE
42
#elif defined ZMQ_HAVE_LINUX
45
#elif defined ZMQ_HAVE_WINDOWS
46
#define ZMQ_USE_SELECT
48
#elif defined ZMQ_HAVE_FREEBSD
49
#define ZMQ_USE_KQUEUE
51
#elif defined ZMQ_HAVE_OPENBSD
52
#define ZMQ_USE_KQUEUE
54
#elif defined ZMQ_HAVE_NETBSD
55
#define ZMQ_USE_KQUEUE
57
#elif defined ZMQ_HAVE_SOLARIS
58
#define ZMQ_USE_DEVPOLL
59
#include "devpoll.hpp"
60
#elif defined ZMQ_HAVE_OSX
61
#define ZMQ_USE_KQUEUE
63
#elif defined ZMQ_HAVE_QNXNTO
66
#elif defined ZMQ_HAVE_AIX
69
#elif defined ZMQ_HAVE_HPUX
70
#define ZMQ_USE_DEVPOLL
71
#include "devpoll.hpp"
72
#elif defined ZMQ_HAVE_OPENVMS
73
#define ZMQ_USE_SELECT
75
#elif defined ZMQ_HAVE_CYGWIN
76
#define ZMQ_USE_SELECT
79
#error Unsupported platform