From e6b029ec902aef9e0800b42a74002bb19fc1a83f Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Wed, 10 Jul 2013 16:11:39 +0200 Subject: [PATCH] Oops, forgot to add the luasocket compat hack thing --- src/libraries/luasocket/libluasocket/lua.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/libraries/luasocket/libluasocket/lua.h 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