diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-08 15:38:32 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-08 15:38:32 -0500 |
commit | e1eaf5a90159b023cb4c0c9e5c68acba397c1457 (patch) | |
tree | 1d2667967ffe2d9e5ee2d0ae7bab6dbebc990073 /dcop/dcopclient.cpp | |
parent | a71fa0953d227ac2b418a4acd1602db4ecf55825 (diff) | |
parent | aae8990d33bbfee205c75dc7e48e1c64f2beeff0 (diff) | |
download | tdelibs-e1eaf5a90159b023cb4c0c9e5c68acba397c1457.tar.gz tdelibs-e1eaf5a90159b023cb4c0c9e5c68acba397c1457.zip |
Merge branch 'master' of https://scm.trinitydesktop.org/scm/git/tdelibs
Diffstat (limited to 'dcop/dcopclient.cpp')
-rw-r--r-- | dcop/dcopclient.cpp | 4 |
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; |