From 9725516b4274ceaf9d6caf372c5439b4c9db2316 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 22 Jun 2007 17:05:21 -0700 Subject: [PATCH] Split checks for dtrace & getpeerucred() --- os/connection.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/os/connection.c b/os/connection.c index cb3443c5b..693bb201c 100644 --- a/os/connection.c +++ b/os/connection.c @@ -171,8 +171,10 @@ extern __const__ int _nfiles; #ifdef XSERVER_DTRACE # include typedef const char *string; +# ifndef HAS_GETPEERUCRED +# define zoneid_t int +# endif # include "../dix/Xserver-dtrace.h" -# include #endif static int lastfdesc; /* maximum file descriptor */ @@ -563,6 +565,8 @@ AuthAudit (ClientPtr client, Bool letin, char client_uid_string[64]; #ifdef HAS_GETPEERUCRED ucred_t *peercred = NULL; +#endif +#if defined(HAS_GETPEERUCRED) || defined(XSERVER_DTRACE) pid_t client_pid = -1; zoneid_t client_zid = -1; #endif