aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2019-02-26 00:06:02 -0300
committerGitHub <noreply@github.com>2019-02-26 00:06:02 -0300
commitc0fba03e4fe2a27a3471fa5af290be931f957002 (patch)
tree7a5f40572dd9ad9a6b56749cc256f7b658946873 /src/tcp.c
parent9b3f7a430454dc9568dfb063fbc324b29c5134d7 (diff)
parente2e43d62fa925e7e22385505ed0c635255c77c0a (diff)
downloadluasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.tar.gz
luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.tar.bz2
luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.zip
Merge pull request #270 from ewestbrook/functionvisibility
Tag functions explicitly for shared library visibility
Diffstat (limited to 'src/tcp.c')
-rw-r--r--src/tcp.c9
1 files 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 @@
2* TCP object 2* TCP object
3* LuaSocket toolkit 3* LuaSocket toolkit
4\*=========================================================================*/ 4\*=========================================================================*/
5#include <string.h> 5#include "luasocket.h"
6 6
7#include "lua.h" 7#include "lua.h"
8#include "lauxlib.h" 8#include "lauxlib.h"
9#include "compat.h"
10 9
10#include "compat.h"
11#include "auxiliar.h" 11#include "auxiliar.h"
12
12#include "socket.h" 13#include "socket.h"
13#include "inet.h" 14#include "inet.h"
14#include "options.h" 15#include "options.h"
15#include "tcp.h" 16#include "tcp.h"
16 17
18#include <string.h>
19
17/*=========================================================================*\ 20/*=========================================================================*\
18* Internal function prototypes 21* Internal function prototypes
19\*=========================================================================*/ 22\*=========================================================================*/
@@ -126,7 +129,7 @@ static luaL_Reg func[] = {
126/*-------------------------------------------------------------------------*\ 129/*-------------------------------------------------------------------------*\
127* Initializes module 130* Initializes module
128\*-------------------------------------------------------------------------*/ 131\*-------------------------------------------------------------------------*/
129int tcp_open(lua_State *L) 132LUASOCKET_PRIVATE int tcp_open(lua_State *L)
130{ 133{
131 /* create classes */ 134 /* create classes */
132 auxiliar_newclass(L, "tcp{master}", tcp_methods); 135 auxiliar_newclass(L, "tcp{master}", tcp_methods);