Fix warning on Linux.

This commit is contained in:
Xie Han
2024-03-06 21:39:48 +08:00
parent c7dc253cf6
commit a6d94c030b

View File

@@ -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;