]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
profiling: fix build on older systems
authorVictor Julien <victor@inliniac.net>
Mon, 17 Sep 2012 09:21:26 +0000 (11:21 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 17 Sep 2012 09:21:26 +0000 (11:21 +0200)
src/detect.h
src/util-profiling.h

index 627d12d5a41ce0bab8360702fd865a9fc58562d8..f24161df83cea1f13acd68794613efd7bc88773d 100644 (file)
 
 #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;
index 2cae4c3bca5c214593419d95fb0af68dab1c6577..d2e24110998eb6442cf7e14cb762190ecfdda5fc 100644 (file)
@@ -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);