From: Amos Jeffries Date: Fri, 30 Apr 2010 13:27:21 +0000 (+1200) Subject: Author: Francesco Chemolli X-Git-Tag: SQUID_3_1_2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c43802c2e8136ca563b6962592149aa7c6ab095e;p=thirdparty%2Fsquid.git Author: Francesco Chemolli Portability fix for profiler on CPU/OS combos where it's not supported. --- diff --git a/include/profiling.h b/include/profiling.h index 07da9f62cc..4d2138df4d 100644 --- a/include/profiling.h +++ b/include/profiling.h @@ -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