From: Francesco Chemolli Date: Wed, 28 Apr 2010 10:21:46 +0000 (+0200) Subject: Portability fix for profiler on CPU/OS combos where it's not supported. X-Git-Tag: SQUID_3_2_0_1~261 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e0852e815a3806ff56808a0c5f0692054ae5469;p=thirdparty%2Fsquid.git Portability fix for profiler on CPU/OS combos where it's not supported. --- diff --git a/include/profiling.h b/include/profiling.h index 09ce91fdda..56b6c2d82a 100644 --- a/include/profiling.h +++ b/include/profiling.h @@ -64,11 +64,8 @@ get_tick(void) } #else -static inline hrtime_t -get_tick(void) -{ - return 0; // unsupported on this CPU -} +/* This CPU is unsupported. Short-circuit, no profiling here */ +#define get_tick() 0 #undef USE_XPROF_STATS #endif