diff options
author | Martin Lucina <martin@lucina.net> | 2012-01-23 09:00:28 +0100 |
---|---|---|
committer | Martin Lucina <martin@lucina.net> | 2012-01-23 09:00:28 +0100 |
commit | 4016b657973bba87caf75168ba70aaa85d556487 (patch) | |
tree | c2abaf9284f55964bea72a0b76f6b79070335858 /src/device.cpp | |
parent | 978e33ba253a997b41b331b449b474a5cee7bccc (diff) |
Imported Upstream version 2.1.11upstream/2.1.11
Diffstat (limited to 'src/device.cpp')
-rw-r--r-- | src/device.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/device.cpp b/src/device.cpp index 351283a..4d86e91 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -20,6 +20,20 @@ #include <stddef.h> +#include "platform.hpp" + +// On AIX, poll.h has to be included before zmq.h to get consistent +// definition of pollfd structure (AIX uses 'reqevents' and 'retnevents' +// instead of 'events' and 'revents' and defines macros to map from POSIX-y +// names to AIX-specific names). +#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.h> +#endif + #include "../include/zmq.h" #include "device.hpp" |