summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-02-23 16:22:17 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2011-02-23 16:22:17 +0000
commit7bccae395b83416be6bea2de69fdfcce46995acf (patch)
treec3062bc2b7c1cd355969ed93e91a906ca4fc630c
parentee065f1cb55be56da6ed12b35cd0e686abcb3a10 (diff)
downloadrsyslog-7bccae395b83416be6bea2de69fdfcce46995acf.tar.gz
rsyslog-7bccae395b83416be6bea2de69fdfcce46995acf.tar.xz
rsyslog-7bccae395b83416be6bea2de69fdfcce46995acf.zip
fixed compile problems on Solaris
-rw-r--r--plugins/imuxsock/imuxsock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/imuxsock/imuxsock.c b/plugins/imuxsock/imuxsock.c
index ff38852c..7ee413e7 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -606,7 +606,9 @@ 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;
uchar bufRcv[4096+1];
char aux[128];
@@ -630,11 +632,13 @@ static rsRetVal readSocket(lstn_t *pLstn)
memset(&msgh, 0, sizeof(msgh));
memset(&msgiov, 0, sizeof(msgiov));
+# if HAVE_SCM_CREDENTIALS
if(pLstn->bUseCreds) {
memset(&aux, 0, sizeof(aux));
msgh.msg_control = aux;
msgh.msg_controllen = sizeof(aux);
}
+# endif
msgiov.iov_base = pRcv;
msgiov.iov_len = iMaxLine;
msgh.msg_iov = &msgiov;