| Index: ipc/ipc_channel_posix.cc
|
| diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
|
| index 9d9b8d19990e87164a28a356729ec6eca470f5ac..3f759dfee98519a1d9365c7207ef781a53146915 100644
|
| --- a/ipc/ipc_channel_posix.cc
|
| +++ b/ipc/ipc_channel_posix.cc
|
| @@ -18,6 +18,7 @@
|
|
|
| #include <string>
|
| #include <map>
|
| +#include <unistd.h>
|
|
|
| #include "base/command_line.h"
|
| #include "base/eintr_wrapper.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;
|
|
|
|
|