From 525d703e16c1f557b95f742f7d2681ad6815f92f Mon Sep 17 00:00:00 2001 From: "E. Westbrook" Date: Mon, 25 Feb 2019 16:00:51 -0700 Subject: [PATCH] tcp.c: use LUASOCKET_PRIVATE --- src/tcp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tcp.c b/src/tcp.c index c7384b4..cc5b6a7 100644 --- a/src/tcp.c +++ b/src/tcp.c @@ -2,18 +2,21 @@ * TCP object * LuaSocket toolkit \*=========================================================================*/ -#include +#include "luasocket.h" #include "lua.h" #include "lauxlib.h" -#include "compat.h" +#include "compat.h" #include "auxiliar.h" + #include "socket.h" #include "inet.h" #include "options.h" #include "tcp.h" +#include + /*=========================================================================*\ * Internal function prototypes \*=========================================================================*/ @@ -126,7 +129,7 @@ static luaL_Reg func[] = { /*-------------------------------------------------------------------------*\ * Initializes module \*-------------------------------------------------------------------------*/ -int tcp_open(lua_State *L) +LUASOCKET_PRIVATE int tcp_open(lua_State *L) { /* create classes */ auxiliar_newclass(L, "tcp{master}", tcp_methods);