aboutsummaryrefslogtreecommitdiff
path: root/src/unixtcp.c
diff options
context:
space:
mode:
authorenginix <wnd1024@gmail.com>2016-06-30 15:40:51 +0800
committerenginix <wnd1024@gmail.com>2016-06-30 15:40:51 +0800
commit9f77f8b24f7fcce66678b5c73ca82ceb23576536 (patch)
tree33ff7a0cae61fa07d867658b41e6ec5375711628 /src/unixtcp.c
parentaa1b8cc9bc35e56de15eeb153c899e4c51de82a8 (diff)
downloadluasocket-9f77f8b24f7fcce66678b5c73ca82ceb23576536.tar.gz
luasocket-9f77f8b24f7fcce66678b5c73ca82ceb23576536.tar.bz2
luasocket-9f77f8b24f7fcce66678b5c73ca82ceb23576536.zip
unix socket: compat lua 5.1
Diffstat (limited to 'src/unixtcp.c')
-rw-r--r--src/unixtcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unixtcp.c b/src/unixtcp.c
index 88baac0..a9c4962 100644
--- a/src/unixtcp.c
+++ b/src/unixtcp.c
@@ -6,6 +6,7 @@
6 6
7#include "lua.h" 7#include "lua.h"
8#include "lauxlib.h" 8#include "lauxlib.h"
9#include "compat.h"
9 10
10#include "auxiliar.h" 11#include "auxiliar.h"
11#include "socket.h" 12#include "socket.h"
@@ -90,7 +91,7 @@ int unixtcp_open(lua_State *L)
90 auxiliar_add2group(L, "unixtcp{server}", "unixtcp{any}"); 91 auxiliar_add2group(L, "unixtcp{server}", "unixtcp{any}");
91 92
92 luaL_setfuncs(L, func, 0); 93 luaL_setfuncs(L, func, 0);
93 return 1; 94 return 0;
94} 95}
95 96
96/*=========================================================================*\ 97/*=========================================================================*\