]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Solaris getrusage wrapping
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 15 Jan 2011 03:24:47 +0000 (16:24 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 15 Jan 2011 03:24:47 +0000 (16:24 +1300)
src/tools.cc

index f3118949e9d0be8ccb059e4e1132c43bfd3e39ef..18729c9bdf135eeb85310fc099403f4c5add33b2 100644 (file)
@@ -240,13 +240,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