Package: ettercap / 1:0.8.2-10

825.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From c28d039bd805eee4f2ef304cfee0d12442b394de Mon Sep 17 00:00:00 2001
From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Date: Sun, 27 Aug 2017 22:29:38 +0200
Subject: [PATCH] Make it work with lua 2.1

---
 cmake/Modules/FindLUAJIT.cmake | 2 +-
 src/lua/ec_lua.c               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/Modules/FindLUAJIT.cmake b/cmake/Modules/FindLUAJIT.cmake
index adc422c07..7026df958 100644
--- a/cmake/Modules/FindLUAJIT.cmake
+++ b/cmake/Modules/FindLUAJIT.cmake
@@ -4,7 +4,7 @@
 #
 
 # Look for the header file
-FIND_PATH(LUAJIT_INCLUDE_DIR NAMES luajit.h PATH_SUFFIXES luajit-2.0 luajit)
+FIND_PATH(LUAJIT_INCLUDE_DIR NAMES luajit.h PATH_SUFFIXES luajit-2.1 luajit-2.0 luajit)
 MARK_AS_ADVANCED(LUAJIT_INCLUDE_DIR)
 
 #Look for the library
diff --git a/src/lua/ec_lua.c b/src/lua/ec_lua.c
index 8546ff306..e220fa768 100644
--- a/src/lua/ec_lua.c
+++ b/src/lua/ec_lua.c
@@ -296,7 +296,7 @@ static int l_hook_add(lua_State* state)
   return 0;
 }
 
-static const struct luaL_reg ec_lua_lib[] = {
+static const struct luaL_Reg ec_lua_lib[] = {
   {"hook_add", l_hook_add},
   {"log", l_log},
   {NULL, NULL}