From 7f6cc85df84f2fea1197c3b72fe2a9cf2e7cb134 Mon Sep 17 00:00:00 2001 From: Pieter Hintjens Date: Thu, 11 Sep 2014 08:32:58 +0200 Subject: [PATCH] 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 --- zmq.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zmq.hpp b/zmq.hpp index a43779d..2af0956 100644 --- a/zmq.hpp +++ b/zmq.hpp @@ -62,6 +62,11 @@ #if ZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 1, 0) #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 // In order to prevent unused variable warnings when building in non-debug