Skip to content

Commit

Permalink
Fix. FFI: Remove ZMQ_IDENTITY_FD form ZMQ 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed Jan 14, 2015
1 parent e724885 commit 8fe0fcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/lua/lzmq/ffi/api.lua
Expand Up @@ -963,6 +963,12 @@ end
_M.EVENTS.ZMQ_EVENT_ALL = ZMQ_EVENT_ALL
end

if is_zmq_ge(4, 2, 0) then

_M.SOCKET_OPTIONS.ZMQ_IDENTITY_FD = nil

end

end

_M.inttoptr = inttoptr
Expand Down
2 changes: 1 addition & 1 deletion test/utest.lua
Expand Up @@ -44,7 +44,7 @@ local zpoller= require (LZMQ .. ".poller")
print("------------------------------------")
print("Lua version: " .. (_G.jit and _G.jit.version or _G._VERSION))
print("ZQM version: " .. zversion(zmq))
print("lzmq version: " .. zmq._VERSION)
print("lzmq version: " .. zmq._VERSION .. (TEST_FFI and " (FFI)" or ""))
print("------------------------------------")
print("")

Expand Down

0 comments on commit 8fe0fcb

Please sign in to comment.