$OpenBSD: patch-ipc_ipc_channel_posix_cc,v 1.6 2011/10/27 07:59:09 robert Exp $ --- ipc/ipc_channel_posix.cc.orig Fri Oct 21 10:30:02 2011 +++ ipc/ipc_channel_posix.cc Wed Oct 26 13:39:46 2011 @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -930,7 +931,7 @@ bool Channel::ChannelImpl::HasAcceptedConnection() con 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) {