From: Victor Julien Date: Mon, 17 Sep 2012 09:21:26 +0000 (+0200) Subject: profiling: fix build on older systems X-Git-Tag: suricata-1.4beta2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c91c3596922365b25417304e28b243b91a065784;p=thirdparty%2Fsuricata.git profiling: fix build on older systems --- diff --git a/src/detect.h b/src/detect.h index 627d12d5a4..f24161df83 100644 --- a/src/detect.h +++ b/src/detect.h @@ -42,11 +42,6 @@ #include "detect-mark.h" -#ifdef PROFILING -typedef struct SCProfileData_ SCProfileData; -typedef struct SCProfileDetectCtx_ SCProfileDetectCtx; -#endif - #define COUNTER_DETECT_ALERTS 1 /* forward declarations for the structures from detect-engine-sigorder.h */ @@ -696,7 +691,7 @@ typedef struct DetectEngineCtx_ { int keyword_id; #ifdef PROFILING - SCProfileDetectCtx *profile_ctx; + struct SCProfileDetectCtx_ *profile_ctx; #endif } DetectEngineCtx; @@ -824,7 +819,7 @@ typedef struct DetectionEngineThreadCtx_ { int keyword_ctxs_size; #ifdef PROFILING - SCProfileData *rule_perf_data; + struct SCProfileData_ *rule_perf_data; int rule_perf_data_size; #endif } DetectEngineThreadCtx; diff --git a/src/util-profiling.h b/src/util-profiling.h index 2cae4c3bca..d2e2411099 100644 --- a/src/util-profiling.h +++ b/src/util-profiling.h @@ -197,11 +197,11 @@ void SCProfilingAddPacket(Packet *); void SCProfilingRulesGlobalInit(void); -void SCProfilingRuleDestroyCtx(SCProfileDetectCtx *); +void SCProfilingRuleDestroyCtx(struct SCProfileDetectCtx_ *); void SCProfilingRuleInitCounters(DetectEngineCtx *); void SCProfilingRuleUpdateCounter(DetectEngineThreadCtx *, uint16_t, uint64_t, int); -void SCProfilingRuleThreadSetup(SCProfileDetectCtx *, DetectEngineThreadCtx *); +void SCProfilingRuleThreadSetup(struct SCProfileDetectCtx_ *, DetectEngineThreadCtx *); void SCProfilingRuleThreadCleanup(DetectEngineThreadCtx *); void SCProfilingInit(void);