Commit 4706a18c authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #945 from twwlogin/patch-2

Allow iov_base as char * on Solaris 8/9/10.
parents 20f22e04 b7a663f1
......@@ -533,7 +533,7 @@ int zmq_recviov (void *s_, iovec *a_, size_t *count_, int flags_)
}
a_[i].iov_len = zmq_msg_size (&msg);
a_[i].iov_base = malloc(a_[i].iov_len);
a_[i].iov_base = static_cast<char *> (malloc(a_[i].iov_len));
if (unlikely (!a_[i].iov_base)) {
errno = ENOMEM;
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment