Blame SOURCES/modsecurity-2.9.3-lua-54.patch

995271
diff -ru modsecurity-2.9.3/apache2/msc_lua.c modsecurity-2.9.3-lua-patch/apache2/msc_lua.c
995271
--- modsecurity-2.9.3/apache2/msc_lua.c	2018-12-04 18:49:37.000000000 +0000
995271
+++ modsecurity-2.9.3-lua-patch/apache2/msc_lua.c	2020-08-08 16:55:14.936045777 +0000
995271
@@ -429,12 +429,12 @@
995271
 #else
995271
 
995271
     /* Create new state. */
995271
-#if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 501
995271
+#if LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 501 || LUA_VERSION_NUM == 504
995271
     L = luaL_newstate();
995271
 #elif LUA_VERSION_NUM == 500
995271
     L = lua_open();
995271
 #else
995271
-#error We are only tested under Lua 5.0, 5.1, 5.2, or 5.3.
995271
+#error We are only tested under Lua 5.0, 5.1, 5.2, 5.3 or 5.4.
995271
 #endif
995271
     luaL_openlibs(L);
995271
 
995271
@@ -459,10 +459,10 @@
995271
     /* Register functions. */
995271
 #if LUA_VERSION_NUM == 500 || LUA_VERSION_NUM == 501
995271
     luaL_register(L, "m", mylib);
995271
-#elif LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503
995271
+#elif LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503 || LUA_VERSION_NUM == 504
995271
     luaL_setfuncs(L, mylib, 0);
995271
 #else
995271
-#error We are only tested under Lua 5.0, 5.1, 5.2, or 5.3.
995271
+#error We are only tested under Lua 5.0, 5.1, 5.2, 5.3 or 5.4.
995271
 #endif
995271
 
995271
     lua_setglobal(L, "m");