mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Fix warning on Linux.
This commit is contained in:
@@ -1931,7 +1931,11 @@ int Communicator::reply_message_unreliable(struct CommConnEntry *entry)
|
||||
.msg_name = entry->target->addr,
|
||||
.msg_namelen = entry->target->addrlen,
|
||||
.msg_iov = vectors,
|
||||
#ifdef __linux__
|
||||
.msg_iovlen = (size_t)cnt,
|
||||
#else
|
||||
.msg_iovlen = cnt,
|
||||
#endif
|
||||
};
|
||||
if (sendmsg(entry->sockfd, &message, 0) < 0)
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user