summaryrefslogtreecommitdiff
path: root/sysutils/rsyslog6/files/patch-plugins__imuxsock__imuxsock.c
blob: bfbc242d83b9fa4b1bf5974374c8be5bdd040ab0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- plugins/imuxsock/imuxsock.c.orig	2012-09-06 04:05:36.000000000 -0600
+++ plugins/imuxsock/imuxsock.c	2012-09-09 20:03:06.000000000 -0600
@@ -81,7 +81,7 @@
 
 /* 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 */
@@ -895,9 +895,7 @@
 	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];