diff options
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/select.c b/src/select.c index 51fb198..fafaa62 100644 --- a/src/select.c +++ b/src/select.c | |||
@@ -40,7 +40,11 @@ int select_open(lua_State *L) { | |||
40 | lua_pushstring(L, "_SETSIZE"); | 40 | lua_pushstring(L, "_SETSIZE"); |
41 | lua_pushnumber(L, FD_SETSIZE); | 41 | lua_pushnumber(L, FD_SETSIZE); |
42 | lua_rawset(L, -3); | 42 | lua_rawset(L, -3); |
43 | #if LUA_VERSION_NUM > 501 && !defined(LUA_COMPAT_MODULE) | ||
44 | luaL_setfuncs(L, func, 0); | ||
45 | #else | ||
43 | luaL_openlib(L, NULL, func, 0); | 46 | luaL_openlib(L, NULL, func, 0); |
47 | #endif | ||
44 | return 0; | 48 | return 0; |
45 | } | 49 | } |
46 | 50 | ||