unix socket: compat lua 5.1

This commit is contained in:
enginix 2016-06-30 15:40:51 +08:00
parent aa1b8cc9bc
commit 9f77f8b24f
3 changed files with 5 additions and 2 deletions

View File

@ -309,6 +309,7 @@ UNIX_OBJS=\
usocket.$(O) \
unixtcp.$(O) \
unixudp.$(O) \
compat.$(O) \
unix.$(O)
#------

View File

@ -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;
}
/*=========================================================================*\

View File

@ -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;
}
/*=========================================================================*\