Commit d016d3f8 authored by Kenton Varda's avatar Kenton Varda

Try to fix Mac build moar.

parent d204be56
......@@ -335,7 +335,7 @@ private:
auto cmsgBytes = cmsgSpace.asBytes();
memset(cmsgBytes.begin(), 0, cmsgBytes.size());
msg.msg_control = cmsgBytes.begin();
msg.msg_controllen = cmsgBytes.size();
msg.msg_controllen = msgBytes;
#ifdef MSG_CMSG_CLOEXEC
static constexpr int RECVMSG_FLAGS = MSG_CMSG_CLOEXEC;
......@@ -489,7 +489,7 @@ private:
auto cmsgBytes = cmsgSpace.asBytes();
memset(cmsgBytes.begin(), 0, cmsgBytes.size());
msg.msg_control = cmsgBytes.begin();
msg.msg_controllen = cmsgBytes.size();
msg.msg_controllen = msgBytes;
struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg);
cmsg->cmsg_level = SOL_SOCKET;
......
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