From cc82423bacda542f007f33c13ed53f23f0323c94 Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Wed, 11 Aug 2010 17:38:20 +1000 Subject: [PATCH] Adding support for zmq 2.0.7 with a hacky preprocessor check --- zmq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zmq.c b/zmq.c index b9b3f06..88d78ae 100644 --- a/zmq.c +++ b/zmq.c @@ -345,8 +345,14 @@ LUALIB_API int luaopen_zmq(lua_State *L) set_zmq_const(REP); set_zmq_const(XREQ); set_zmq_const(XREP); + +#if defined(ZMQ_PULL) && defined(ZMQ_PUSH) set_zmq_const(PULL); set_zmq_const(PUSH); +#else + set_zmq_const(UPSTREAM); + set_zmq_const(DOWNSTREAM); +#endif set_zmq_const(HWM); set_zmq_const(SWAP);