diff --git a/src/rpc/lua.cc b/src/rpc/lua.cc index dce5f754..c1f5c703 100644 --- a/src/rpc/lua.cc +++ b/src/rpc/lua.cc @@ -10,6 +10,10 @@ #ifdef HAVE_LUA #include +// LUA_OK was introduced in Lua 5.2; define for Lua 5.1 and LuaJIT2.0. +#ifndef LUA_OK +#define LUA_OK 0 +#endif #endif #include