diff --git a/src/libraries/luasocket/libluasocket/lua.h b/src/libraries/luasocket/libluasocket/lua.h new file mode 100644 index 000000000..e97bc2ac2 --- /dev/null +++ b/src/libraries/luasocket/libluasocket/lua.h @@ -0,0 +1,12 @@ +#define LUA_COMPAT_ALL +#include +#include +#include + +#if LUA_VERSION_NUM > 501 +# define luaL_reg luaL_Reg +# define luaL_putchar(B, c) luaL_addchar(B, c) +# define luaL_typerror(L, n, t) luax_typerror(L, n, t) + +extern int luax_typerror(lua_State *L, int narg, const char *type); +#endif