Skip to content

Commit

Permalink
Fix compile error for libzmq 4.2.1 and 4.2.2 (zeromq#161)
Browse files Browse the repository at this point in the history
* Fix compile error for libzmq 4.2.1 and 4.2.2

When defined ZMQ_BUILD_DRAFT_API=1, you receive an error "'on_event_handshake_succeeded' was not declared in this scope"... which is correct for versions 4.2.1 and 4.2.2.
Function was renamed from 'on_event_handshake_succeed', fixed this by updating the function name.
  • Loading branch information
FrankAdesys authored and bluca committed Oct 9, 2017
1 parent 98fa1f4 commit a1000a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ namespace zmq
on_event_handshake_failed(*event, address.c_str());
break;
case ZMQ_EVENT_HANDSHAKE_SUCCEED:
on_event_handshake_succeeded(*event, address.c_str());
on_event_handshake_succeed(*event, address.c_str());
break;
#endif
#endif
Expand Down

0 comments on commit a1000a0

Please sign in to comment.