]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability fix for profiler on CPU/OS combos where it's not supported.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 28 Apr 2010 10:21:46 +0000 (12:21 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 28 Apr 2010 10:21:46 +0000 (12:21 +0200)
include/profiling.h

index 09ce91fdda4a83d5d00c1c0bf17098500cd5a033..56b6c2d82aa222717bcaccaad2aa434f2cfefbc5 100644 (file)
@@ -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