diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 17:46:22 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 17:46:22 +0000 |
commit | 4af5ef4a92f994ed75f20eeac9a2de2aae1707ee (patch) | |
tree | 489ba32fec269e3cd9436c91b081279c810906f6 /ipc | |
parent | 80c82b78685ca5e88b670f5624aafd521423e869 (diff) | |
download | chromium_src-4af5ef4a92f994ed75f20eeac9a2de2aae1707ee.zip chromium_src-4af5ef4a92f994ed75f20eeac9a2de2aae1707ee.tar.gz chromium_src-4af5ef4a92f994ed75f20eeac9a2de2aae1707ee.tar.bz2 |
OpenBSD patch for ipc, split from CR #8275005
Include <sys/uio.h> on OpenBSD and share the getpeerid code
with Mac.
Patch by Robert Nagy <robert@openbsd.org>
BUG=
TEST=
Review URL: http://codereview.chromium.org/8330025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106080 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_posix.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc index 1b52b65..ffa69b57 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) { |