summaryrefslogtreecommitdiffstats
path: root/plugins/imuxsock
diff options
context:
space:
mode:
authorBrad Davis <brd@FreeBSD.org>2012-09-11 16:01:44 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-11 16:01:44 +0200
commita53c2bca49ba0bb49719ebe570854d06ea7e1ca2 (patch)
tree2fea8d8e59400252f4a24138f9492ec95e19a104 /plugins/imuxsock
parent0c65e62965eefc1f8cebfaa3636ef72fc21c5260 (diff)
downloadrsyslog-a53c2bca49ba0bb49719ebe570854d06ea7e1ca2.tar.gz
rsyslog-a53c2bca49ba0bb49719ebe570854d06ea7e1ca2.tar.xz
rsyslog-a53c2bca49ba0bb49719ebe570854d06ea7e1ca2.zip
fix compile problem on FreeBSD
Diffstat (limited to 'plugins/imuxsock')
-rw-r--r--plugins/imuxsock/imuxsock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index ea54e79b..d8922888 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -77,7 +77,7 @@ MODULE_TYPE_NOKEEP
/* emulate struct ucred for platforms that do not have it */
#ifndef HAVE_SCM_CREDENTIALS
-struct ucred { int pid; };
+struct ucred { int pid; uid_t uid; gid_t gid; };
#endif
/* handle some defines missing on more than one platform */
@@ -802,9 +802,7 @@ static rsRetVal readSocket(lstn_t *pLstn)
int iMaxLine;
struct msghdr msgh;
struct iovec msgiov;
-# if HAVE_SCM_CREDENTIALS
struct cmsghdr *cm;
-# endif
struct ucred *cred;
struct timeval *ts;
uchar bufRcv[4096+1];