| Index: ipc/ipc_channel_posix.cc
|
| diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
|
| index 1b52b65c07ac44e072475f458c38aa47034bdd9f..ffa69b574c5679a629910f00924a22b77e9ba7b5 100644
|
| --- a/ipc/ipc_channel_posix.cc
|
| +++ b/ipc/ipc_channel_posix.cc
|
| @@ -12,6 +12,10 @@
|
| #include <sys/stat.h>
|
| #include <sys/un.h>
|
|
|
| +#if defined(OS_OPENBSD)
|
| +#include <sys/uio.h>
|
| +#endif
|
| +
|
| #include <string>
|
| #include <map>
|
|
|
| @@ -944,7 +948,7 @@ bool Channel::ChannelImpl::HasAcceptedConnection() const {
|
|
|
| bool Channel::ChannelImpl::GetClientEuid(uid_t* client_euid) const {
|
| DCHECK(HasAcceptedConnection());
|
| -#if defined(OS_MACOSX)
|
| +#if defined(OS_MACOSX) || defined(OS_OPENBSD)
|
| uid_t peer_euid;
|
| gid_t peer_gid;
|
| if (getpeereid(pipe_, &peer_euid, &peer_gid) != 0) {
|
|
|