mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 16:15:23 +08:00
Merge pull request #945 from twwlogin/patch-2
Allow iov_base as char * on Solaris 8/9/10.
This commit is contained in:
commit
4706a18cf3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user