~ubuntu-branches/ubuntu/saucy/zeromq3/saucy

« back to all changes in this revision

Viewing changes to src/poller.hpp

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-06-04 21:21:09 UTC
  • Revision ID: package-import@ubuntu.com-20120604212109-b7b3m0rn21o8oo2q
Tags: upstream-3.1.0~beta+dfsg
ImportĀ upstreamĀ versionĀ 3.1.0~beta+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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
 
5
 
 
6
    This file is part of 0MQ.
 
7
 
 
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.
 
12
 
 
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.
 
17
 
 
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/>.
 
20
*/
 
21
 
 
22
#ifndef __ZMQ_POLLER_HPP_INCLUDED__
 
23
#define __ZMQ_POLLER_HPP_INCLUDED__
 
24
 
 
25
#include "platform.hpp"
 
26
 
 
27
#if defined ZMQ_FORCE_SELECT
 
28
#define ZMQ_USE_SELECT
 
29
#include "select.hpp"
 
30
#elif defined ZMQ_FORCE_POLL
 
31
#define ZMQ_USE_POLL
 
32
#include "poll.hpp"
 
33
#elif defined ZMQ_FORCE_EPOLL
 
34
#define ZMQ_USE_EPOLL
 
35
#include "epoll.hpp"
 
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
 
41
#include "kqueue.hpp"
 
42
#elif defined ZMQ_HAVE_LINUX
 
43
#define ZMQ_USE_EPOLL
 
44
#include "epoll.hpp"
 
45
#elif defined ZMQ_HAVE_WINDOWS
 
46
#define ZMQ_USE_SELECT
 
47
#include "select.hpp"
 
48
#elif defined ZMQ_HAVE_FREEBSD
 
49
#define ZMQ_USE_KQUEUE
 
50
#include "kqueue.hpp"
 
51
#elif defined ZMQ_HAVE_OPENBSD
 
52
#define ZMQ_USE_KQUEUE
 
53
#include "kqueue.hpp"
 
54
#elif defined ZMQ_HAVE_NETBSD
 
55
#define ZMQ_USE_KQUEUE
 
56
#include "kqueue.hpp"
 
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
 
62
#include "kqueue.hpp"
 
63
#elif defined ZMQ_HAVE_QNXNTO
 
64
#define ZMQ_USE_POLL
 
65
#include "poll.hpp"
 
66
#elif defined ZMQ_HAVE_AIX
 
67
#define ZMQ_USE_POLL
 
68
#include "poll.hpp"
 
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
 
74
#include "select.hpp"
 
75
#elif defined ZMQ_HAVE_CYGWIN
 
76
#define ZMQ_USE_SELECT
 
77
#include "select.hpp"
 
78
#else
 
79
#error Unsupported platform
 
80
#endif
 
81
 
 
82
#endif