diff -ru crossfire-client-1.12.0-old/common/script_lua.c crossfire-client-1.12.0/common/script_lua.c --- crossfire-client-1.12.0-old/common/script_lua.c 2009-04-04 13:43:43.000000000 -0400 +++ crossfire-client-1.12.0/common/script_lua.c 2009-12-13 00:45:32.020011661 -0500 @@ -44,6 +44,13 @@ #include #include +/* luaL_newstate() is declared in lauxlib.h in Lua >= 5.1 + * and is needed to correct "implicit declaration" warnings. + */ +#if LUA_VERSION_NUM >= 501 +#include +#endif + struct script_state { lua_State* state;