From ed6c414bb5fa925fae1718d4ef5d4691a0219d8e Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Tue, 7 Jul 2015 13:32:20 -0400 Subject: [PATCH] Fix compatibility with zeromq 4.1. Close #83 --- src/ZMQ.jl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ZMQ.jl b/src/ZMQ.jl index 30f882e..e834d63 100644 --- a/src/ZMQ.jl +++ b/src/ZMQ.jl @@ -374,13 +374,11 @@ end const gc_free_fn_c = cfunction(gc_free_fn, Cint, (Ptr{Void}, Ptr{Void})) ## Messages ## +bitstype 64 * 8 MsgPadding + type Message <: AbstractArray{UInt8,1} - # 32 bytes (for v3) + a pointer (for v2) - w0::Int64 - w1::Int64 - w2::Int64 - w3::Int64 - w4::Int + # Matching the declaration in the header: char _[64]; + w_padding::MsgPadding handle::Ptr{Void} # index into gc_protect, if any # Create an empty message (for receive)