| Index: ipc/ipc_channel_posix.cc
|
| diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
|
| index 9d9b8d19990e87164a28a356729ec6eca470f5ac..3e39534659e6630a07a19be09d86ce780b225b5c 100644
|
| --- a/ipc/ipc_channel_posix.cc
|
| +++ b/ipc/ipc_channel_posix.cc
|
| @@ -11,6 +11,7 @@
|
| #include <sys/socket.h>
|
| #include <sys/stat.h>
|
| #include <sys/un.h>
|
| +#include <unistd.h>
|
|
|
| #if defined(OS_OPENBSD)
|
| #include <sys/uio.h>
|
| @@ -898,7 +899,7 @@ Channel::ChannelImpl::ReadState Channel::ChannelImpl::ReadData(
|
|
|
| struct msghdr msg = {0};
|
|
|
| - struct iovec iov = {buffer, buffer_len};
|
| + struct iovec iov = {buffer, static_cast<size_t>(buffer_len)};
|
| msg.msg_iov = &iov;
|
| msg.msg_iovlen = 1;
|
|
|
|
|