diff options
Diffstat (limited to 'src/tcp.c')
-rw-r--r-- | src/tcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -107,7 +107,11 @@ int tcp_open(lua_State *L) | |||
107 | auxiliar_add2group(L, "tcp{client}", "tcp{any}"); | 107 | auxiliar_add2group(L, "tcp{client}", "tcp{any}"); |
108 | auxiliar_add2group(L, "tcp{server}", "tcp{any}"); | 108 | auxiliar_add2group(L, "tcp{server}", "tcp{any}"); |
109 | /* define library functions */ | 109 | /* define library functions */ |
110 | #if LUA_VERSION_NUM > 501 && !defined(LUA_COMPAT_MODULE) | ||
111 | luaL_setfuncs(L, func, 0); | ||
112 | #else | ||
110 | luaL_openlib(L, NULL, func, 0); | 113 | luaL_openlib(L, NULL, func, 0); |
114 | #endif | ||
111 | return 0; | 115 | return 0; |
112 | } | 116 | } |
113 | 117 | ||