From: Victor Julien Date: Fri, 27 Nov 2015 08:50:50 +0000 (+0100) Subject: profiling: fix lock profile compilation X-Git-Tag: suricata-3.0RC2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=019f85644251fc56ae12122ec0fc6279017d96b9;p=thirdparty%2Fsuricata.git profiling: fix lock profile compilation --- diff --git a/src/util-profiling-locks.c b/src/util-profiling-locks.c index 97cc3e0d8a..7719e6d5b7 100644 --- a/src/util-profiling-locks.c +++ b/src/util-profiling-locks.c @@ -24,13 +24,13 @@ * */ -#ifdef PROFILING -#ifdef PROFILE_LOCKING - #include "suricata-common.h" #include "util-profiling-locks.h" #include "util-hashlist.h" +#ifdef PROFILING +#ifdef PROFILE_LOCKING + __thread ProfilingLock locks[PROFILING_MAX_LOCKS]; __thread int locks_idx = 0; __thread int record_locks = 0;