]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add lua 5.3 support
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Nov 2016 13:47:27 +0000 (13:47 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Nov 2016 13:47:27 +0000 (13:47 +0000)
CMakeLists.txt
src/libutil/http.c

index 6cd5133473220e7d6be4b19baf027fe9e8eb56f3..cef1d25f9b03f14204d33b656bf4a05bb01dba5f 100644 (file)
@@ -636,9 +636,12 @@ IF(ENABLE_LUAJIT MATCHES "ON")
                INCLUDE_DIRECTORIES("${LUA_INCLUDE_DIR}")
        ENDIF(NOT LUA_FOUND)
 ELSE(ENABLE_LUAJIT MATCHES "ON")
-       FindLua(VERSION_MAJOR "5" VERSION_MINOR "2" ROOT "${LUA_ROOT}")
+       FindLua(VERSION_MAJOR "5" VERSION_MINOR "3" ROOT "${LUA_ROOT}")
        IF(NOT LUA_FOUND)
-                       FindLua(VERSION_MAJOR "5" VERSION_MINOR "1" ROOT "${LUA_ROOT}")
+               FindLua(VERSION_MAJOR "5" VERSION_MINOR "2" ROOT "${LUA_ROOT}")
+               IF(NOT LUA_FOUND)
+                               FindLua(VERSION_MAJOR "5" VERSION_MINOR "1" ROOT "${LUA_ROOT}")
+               ENDIF(NOT LUA_FOUND)
        ENDIF(NOT LUA_FOUND)
        IF(NOT LUA_FOUND)
                        MESSAGE(FATAL_ERROR "Lua not found, lua support is required")
index 4f1ce1ade626056caffca91398c0e658a7febb75..7f749b8693be760faabfdad50f423703f73a093a 100644 (file)
@@ -542,7 +542,6 @@ rspamd_http_finish_header (struct rspamd_http_connection *conn,
 
        DL_APPEND (hdr, priv->header);
 
-
        rspamd_http_check_special_header (conn, priv);
 }