summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-10-06 12:54:33 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-10-06 12:54:33 +0200
commitd51d6847a84eeec573ce2dd4feeee991d3eb0bcc (patch)
treebdf68bf56466347d084285d31a84dcd2f38c1d3c
parentc0de8c6dc4ec4ac270b0c313ea5a1d2689b44db3 (diff)
downloadrsyslog-d51d6847a84eeec573ce2dd4feeee991d3eb0bcc.tar.gz
rsyslog-d51d6847a84eeec573ce2dd4feeee991d3eb0bcc.tar.xz
rsyslog-d51d6847a84eeec573ce2dd4feeee991d3eb0bcc.zip
previous bugfix was incomplete, resolving this
-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 5b548602..566dde1b 100644
--- a/plugins/imuxsock/imuxsock.c
+++ b/plugins/imuxsock/imuxsock.c
@@ -66,6 +66,10 @@ MODULE_TYPE_INPUT
#endif
#endif
+/* emulate struct ucred for platforms that do not have it */
+#ifndef HAVE_SCM_CREDENTIALS
+struct ucred { int pid; };
+#endif
/* handle some defines missing on more than one platform */
#ifndef SUN_LEN