LLNL / lmt

Lustre Monitoring Tools
GNU General Public License v2.0
67 stars 21 forks source link

Fix compilation against Lua 5.2. #24

Closed haasken closed 9 years ago

haasken commented 10 years ago

Lua 5.1 replaced the function lua_open with a preprocessor macro which called luaL_newstate. Lua 5.2 then removed lua_open entirely. Thus, LMT won't build against Lua 5.2. This change replaces the call to lua_open() with a call to luaL_newstate(), and since that function only exists in Lua >= 5.1, a minimum version number of 5.1 was added to the spec file BuildRequires.

morrone commented 9 years ago

Patch cherry-picked onto master. Thanks!