From 9f77f8b24f7fcce66678b5c73ca82ceb23576536 Mon Sep 17 00:00:00 2001 From: enginix Date: Thu, 30 Jun 2016 15:40:51 +0800 Subject: unix socket: compat lua 5.1 --- src/unixudp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/unixudp.c') 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 @@ #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; } /*=========================================================================*\ -- cgit v1.2.3-55-g6feb