Problem: zmq_event_t removed in libzmq v4.1

Solution: define this if we need it, so that caller can use it
on all versions of libzmq.

Fixes #40
This commit is contained in:
Pieter Hintjens 2014-09-11 08:32:58 +02:00
parent 96e05769d2
commit 7f6cc85df8

View File

@ -62,6 +62,11 @@
#if ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 1, 0) #if ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 1, 0)
#define ZMQ_HAS_PROXY_STEERABLE #define ZMQ_HAS_PROXY_STEERABLE
/* Socket event data */
typedef struct {
uint16_t event; // id of the event as bitfield
int32_t value ; // value is either error code, fd or reconnect interval
} zmq_event_t;
#endif #endif
// In order to prevent unused variable warnings when building in non-debug // In order to prevent unused variable warnings when building in non-debug