aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udp.c')
-rw-r--r--src/udp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udp.c b/src/udp.c
index d48f6fe..ec805b6 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -109,7 +109,11 @@ int udp_open(lua_State *L)
109 auxiliar_add2group(L, "udp{connected}", "select{able}"); 109 auxiliar_add2group(L, "udp{connected}", "select{able}");
110 auxiliar_add2group(L, "udp{unconnected}", "select{able}"); 110 auxiliar_add2group(L, "udp{unconnected}", "select{able}");
111 /* define library functions */ 111 /* define library functions */
112#if LUA_VERSION_NUM > 501 && !defined(LUA_COMPAT_MODULE)
113 luaL_setfuncs(L, func, 0);
114#else
112 luaL_openlib(L, NULL, func, 0); 115 luaL_openlib(L, NULL, func, 0);
116#endif
113 return 0; 117 return 0;
114} 118}
115 119