mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
unix socket: compat lua 5.1
This commit is contained in:
parent
aa1b8cc9bc
commit
9f77f8b24f
@ -309,6 +309,7 @@ UNIX_OBJS=\
|
||||
usocket.$(O) \
|
||||
unixtcp.$(O) \
|
||||
unixudp.$(O) \
|
||||
compat.$(O) \
|
||||
unix.$(O)
|
||||
|
||||
#------
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include "lua.h"
|
||||
#include "lauxlib.h"
|
||||
#include "compat.h"
|
||||
|
||||
#include "auxiliar.h"
|
||||
#include "socket.h"
|
||||
@ -90,7 +91,7 @@ int unixtcp_open(lua_State *L)
|
||||
auxiliar_add2group(L, "unixtcp{server}", "unixtcp{any}");
|
||||
|
||||
luaL_setfuncs(L, func, 0);
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*=========================================================================*\
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include "lua.h"
|
||||
#include "lauxlib.h"
|
||||
#include "compat.h"
|
||||
|
||||
#include "auxiliar.h"
|
||||
#include "socket.h"
|
||||
@ -86,7 +87,7 @@ int unixudp_open(lua_State *L)
|
||||
auxiliar_add2group(L, "unixudp{unconnected}", "select{able}");
|
||||
|
||||
luaL_setfuncs(L, func, 0);
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*=========================================================================*\
|
||||
|
Loading…
Reference in New Issue
Block a user