aboutsummaryrefslogtreecommitdiff
path: root/src/unixudp.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/unixudp.c
parentaa1b8cc9bc35e56de15eeb153c899e4c51de82a8 (diff)
downloadluasocket-9f77f8b24f7fcce66678b5c73ca82ceb23576536.tar.gz
luasocket-9f77f8b24f7fcce66678b5c73ca82ceb23576536.tar.bz2
luasocket-9f77f8b24f7fcce66678b5c73ca82ceb23576536.zip
unix socket: compat lua 5.1
Diffstat (limited to 'src/unixudp.c')
-rw-r--r--src/unixudp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unixudp.c b/src/unixudp.c
index ec348cf..75f5b08 100644
--- a/src/unixudp.c
+++ b/src/unixudp.c
@@ -7,6 +7,7 @@
7 7
8#include "lua.h" 8#include "lua.h"
9#include "lauxlib.h" 9#include "lauxlib.h"
10#include "compat.h"
10 11
11#include "auxiliar.h" 12#include "auxiliar.h"
12#include "socket.h" 13#include "socket.h"
@@ -86,7 +87,7 @@ int unixudp_open(lua_State *L)
86 auxiliar_add2group(L, "unixudp{unconnected}", "select{able}"); 87 auxiliar_add2group(L, "unixudp{unconnected}", "select{able}");
87 88
88 luaL_setfuncs(L, func, 0); 89 luaL_setfuncs(L, func, 0);
89 return 1; 90 return 0;
90} 91}
91 92
92/*=========================================================================*\ 93/*=========================================================================*\