]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Francesco Chemolli <kinkie@squid-cache.org>
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 30 Apr 2010 13:27:21 +0000 (01:27 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 30 Apr 2010 13:27:21 +0000 (01:27 +1200)
Portability fix for profiler on CPU/OS combos where it's not supported.

include/profiling.h

index 07da9f62cc6e4456005cd09ef048e0c2bb6ae1d5..4d2138df4d0c079f99ebef530a66c024b07118f1 100644 (file)
@@ -67,11 +67,8 @@ get_tick(void)
 }
 
 #else
-static inline hrtime_t
-get_tick(void)
-{
-    return 0; //unsupported on the CPU
-}
+/* This CPU is unsupported. Short-circuit, no profiling here */
+#define get_tick() 0
 #undef USE_XPROF_STATS
 #endif