diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2019-02-26 00:06:02 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 00:06:02 -0300 |
commit | c0fba03e4fe2a27a3471fa5af290be931f957002 (patch) | |
tree | 7a5f40572dd9ad9a6b56749cc256f7b658946873 /src/tcp.c | |
parent | 9b3f7a430454dc9568dfb063fbc324b29c5134d7 (diff) | |
parent | e2e43d62fa925e7e22385505ed0c635255c77c0a (diff) | |
download | luasocket-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.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 | \*-------------------------------------------------------------------------*/ |
129 | int tcp_open(lua_State *L) | 132 | LUASOCKET_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); |