From: Victor Julien Date: Fri, 21 Sep 2012 14:59:27 +0000 (+0200) Subject: Fix compilation if luajit is disabled. X-Git-Tag: suricata-1.4beta2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=525367113a04d0fd0b33495a600123e0f9d59553;p=thirdparty%2Fsuricata.git Fix compilation if luajit is disabled. --- diff --git a/src/detect.c b/src/detect.c index 705ed7cf9b..f76f0b4db4 100644 --- a/src/detect.c +++ b/src/detect.c @@ -2653,11 +2653,13 @@ int SigAddressPrepareStage1(DetectEngineCtx *de_ctx) { "adding signatures to signature source addresses..."); } +#ifdef HAVE_LUAJIT /* run this before the mpm states are initialized */ if (DetectLuajitSetupStatesPool(de_ctx->detect_luajit_instances, rule_reload) != 0) { if (de_ctx->failure_fatal) return -1; } +#endif de_ctx->sig_array_len = DetectEngineGetMaxSigId(de_ctx); de_ctx->sig_array_size = (de_ctx->sig_array_len * sizeof(Signature *));