From 9bcc6c09e22e3a32e8f89a13afee5a9a77b92b62 Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 9 Mar 2016 14:52:00 +0000 Subject: [PATCH] Apply patch from Kali package reputed to address #237 --- lpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lpeg.c b/lpeg.c index 0c7c107ac..2c34c6fe4 100644 --- a/lpeg.c +++ b/lpeg.c @@ -3340,8 +3340,8 @@ static struct luaL_Reg metareg[] = { }; -int luaopen_lpeg (lua_State *L); -int luaopen_lpeg (lua_State *L) { +LUALIB_API int luaopen_lpeg (lua_State *L); +LUALIB_API int luaopen_lpeg (lua_State *L) { luaL_newmetatable(L, PATTERN_T); lua_pushnumber(L, MAXBACK); /* initialize maximum backtracking */ lua_setfield(L, LUA_REGISTRYINDEX, MAXSTACKIDX);