Merge pull request #266 from siffiejoe/luajit-static-linking

Fix static linking problem with LuaJIT
This commit is contained in:
Diego Nehab 2019-02-24 17:42:27 -03:00 committed by GitHub
commit 40f79c1961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,8 @@
#include "lauxlib.h" #include "lauxlib.h"
#if LUA_VERSION_NUM==501 #if LUA_VERSION_NUM==501
#define luaL_setfuncs socket_setfuncs
#define luaL_testudata socket_testudata
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);
void *luaL_testudata ( lua_State *L, int arg, const char *tname); void *luaL_testudata ( lua_State *L, int arg, const char *tname);
#endif #endif