From: Amos Jeffries Date: Tue, 1 Feb 2011 01:47:36 +0000 (-0700) Subject: Fix Solaris getrusage wrapping X-Git-Tag: SQUID_3_1_11~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bbf70548ca8b138ec77dc6f667b338d9ea780fb;p=thirdparty%2Fsquid.git Fix Solaris getrusage wrapping --- diff --git a/src/tools.cc b/src/tools.cc index 00d9c576df..4c08696bdf 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -235,13 +235,13 @@ squid_getrusage(struct rusage *r) memset(r, '\0', sizeof(struct rusage)); #if HAVE_GETRUSAGE && defined(RUSAGE_SELF) -#ifdef _SQUID_SOLARIS_ +#if _SQUID_SOLARIS_ /* Solaris 2.5 has getrusage() permission bug -- Arjan de Vet */ enter_suid(); #endif getrusage(RUSAGE_SELF, r); -#ifdef _SQUID_SOLARIS_ +#if _SQUID_SOLARIS_ leave_suid(); #endif