$OpenBSD: patch-ipc_ipc_channel_posix_cc,v 1.7 2011/12/14 16:58:19 robert Exp $
--- ipc/ipc_channel_posix.cc.orig	Wed Dec  7 09:02:00 2011
+++ ipc/ipc_channel_posix.cc	Tue Dec 13 21:23:12 2011
@@ -10,6 +10,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
+#include <sys/uio.h>
 #include <sys/un.h>
 
 #include <string>
@@ -944,7 +945,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) {
