diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2019-02-24 17:42:27 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-24 17:42:27 -0300 |
commit | 40f79c1961819f4477421fac70b0e29bc2fc9cd5 (patch) | |
tree | a7d641a418ea5e69b04dc831c16fe9f07f954f2f | |
parent | e136dd3df38b10584afed55450aa111de3fd01c0 (diff) | |
parent | 59c8aaac3425108e3137677863cc8cee6c84e20b (diff) | |
download | luasocket-40f79c1961819f4477421fac70b0e29bc2fc9cd5.tar.gz luasocket-40f79c1961819f4477421fac70b0e29bc2fc9cd5.tar.bz2 luasocket-40f79c1961819f4477421fac70b0e29bc2fc9cd5.zip |
Merge pull request #266 from siffiejoe/luajit-static-linking
Fix static linking problem with LuaJIT
-rw-r--r-- | src/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat.h b/src/compat.h index e2ab307..49e83f9 100644 --- a/src/compat.h +++ b/src/compat.h | |||
@@ -5,6 +5,8 @@ | |||
5 | #include "lauxlib.h" | 5 | #include "lauxlib.h" |
6 | 6 | ||
7 | #if LUA_VERSION_NUM==501 | 7 | #if LUA_VERSION_NUM==501 |
8 | #define luaL_setfuncs socket_setfuncs | ||
9 | #define luaL_testudata socket_testudata | ||
8 | void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); | 10 | void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); |
9 | void *luaL_testudata ( lua_State *L, int arg, const char *tname); | 11 | void *luaL_testudata ( lua_State *L, int arg, const char *tname); |
10 | #endif | 12 | #endif |