From a53c2bca49ba0bb49719ebe570854d06ea7e1ca2 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Tue, 11 Sep 2012 16:01:44 +0200 Subject: fix compile problem on FreeBSD --- plugins/imuxsock/imuxsock.c | 4 +--- 1 file changed, 1 insertion(+), 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]; -- cgit v1.2.3