profiling: fix build on older systems

pull/75/head
Victor Julien 13 years ago
parent 794bfc590c
commit c91c359692

@ -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;

@ -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);

Loading…
Cancel
Save