From ec3d2f2942172d79fe74a01f5c980873e01ff5dd Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 13 Oct 2017 23:59:50 +0300 Subject: improved lua support Implemented support for lua 5.2/5.3. To build accel-ppp with exact lua version pass it in -DLUA=x.y, for example -DLUA=5.2 (cmake 3.0 is required for this). Old style -DLUA=TRUE supports only 5.1 and does not require cmake 3.0. Also extra lua modules (lua_lpack, lua_bit) took out into separated library luasupp. --- accel-pppd/lua/luasupp.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 accel-pppd/lua/luasupp.h (limited to 'accel-pppd/lua/luasupp.h') diff --git a/accel-pppd/lua/luasupp.h b/accel-pppd/lua/luasupp.h new file mode 100644 index 00000000..fa7a7c30 --- /dev/null +++ b/accel-pppd/lua/luasupp.h @@ -0,0 +1,9 @@ +#ifndef __LUASUPP_H +#define __LUASUPP_H + +#include "lua.h" + +int luaopen_lpack(lua_State *L); +int luaopen_bit(lua_State *L); + +#endif -- cgit v1.2.3