]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Solaris getrusage wrapping
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 1 Feb 2011 01:47:36 +0000 (18:47 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 1 Feb 2011 01:47:36 +0000 (18:47 -0700)
src/tools.cc

index 00d9c576df5f0c3d84b327c5903fa9361f821ee5..4c08696bdfa67487d2d7560448b45b2b131fedf5 100644 (file)
@@ -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