Problem: new zmq_poller used by zmq_poll without DRAFTs

Solution: do not define ZMQ_HAVE_POLLER in src/zmq_drafts.h otherwise
src/zmq.cpp will implement zmq_poll using the new poller classes.
Same for ZMQ_HAVE_TIMERS, even though it has no internal effect, but
to be safe against future development.
This commit is contained in:
Luca Boccassi 2017-04-28 16:08:46 +01:00
parent e905f9da99
commit 90c76fbd60

View File

@ -67,8 +67,6 @@ const char *zmq_msg_group(zmq_msg_t *msg);
/* Poller polling on sockets,fd and thread-safe sockets */
/******************************************************************************/
#define ZMQ_HAVE_POLLER
typedef struct zmq_poller_event_t
{
void *socket;
@ -103,8 +101,6 @@ int zmq_poller_remove_fd (void *poller, int fd);
/* Scheduling timers */
/******************************************************************************/
#define ZMQ_HAVE_TIMERS
typedef void (zmq_timer_fn)(int timer_id, void *arg);
void *zmq_timers_new (void);