summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dcop/dcopclient.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dcop/dcopclient.cpp b/dcop/dcopclient.cpp
index 92fccde82..40cfd41c8 100644
--- a/dcop/dcopclient.cpp
+++ b/dcop/dcopclient.cpp
@@ -717,7 +717,11 @@ bool DCOPClient::isSuspended() const
// Check whether the remote end is owned by the same user.
static bool peerIsUs(int sockfd)
{
+#if defined(__OpenBSD__)
+ struct sockpeercred cred;
+#else
struct ucred cred;
+#endif
socklen_t siz = sizeof(cred);
if (getsockopt(sockfd, SOL_SOCKET, SO_PEERCRED, &cred, &siz) != 0)
return false;