components/apache2-modules/mod_security2/patches/fix_lua.patch
changeset 1028 30d7999e80d9
child 1212 207ff3b0329a
equal deleted inserted replaced
1027:ba55ae2d54aa 1028:30d7999e80d9
       
     1 --- modsecurity-apache_2.5.9/apache2/msc_lua.c.orig	2012-10-22 05:18:52.549922682 -0700
       
     2 +++ modsecurity-apache_2.5.9/apache2/msc_lua.c	2012-10-22 05:21:37.503228311 -0700
       
     3 @@ -81,7 +81,11 @@
       
     4      dumpr.script = script;
       
     5      dumpr.index = 0;
       
     6  
       
     7 +#if LUA_VERSION_NUM >= 502
       
     8 +    return lua_load(L, dump_reader, &dumpr, script->name, NULL);
       
     9 +#else
       
    10      return lua_load(L, dump_reader, &dumpr, script->name);
       
    11 +#endif
       
    12  }
       
    13  
       
    14  /**