diff options
-rw-r--r-- | src/tcp.c | 7 | ||||
-rw-r--r-- | src/tcp.h | 6 |
2 files changed, 6 insertions, 7 deletions
@@ -4,12 +4,7 @@ | |||
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include "luasocket.h" | 5 | #include "luasocket.h" |
6 | 6 | ||
7 | #include "lua.h" | ||
8 | #include "lauxlib.h" | ||
9 | |||
10 | #include "compat.h" | ||
11 | #include "auxiliar.h" | 7 | #include "auxiliar.h" |
12 | |||
13 | #include "socket.h" | 8 | #include "socket.h" |
14 | #include "inet.h" | 9 | #include "inet.h" |
15 | #include "options.h" | 10 | #include "options.h" |
@@ -129,7 +124,7 @@ static luaL_Reg func[] = { | |||
129 | /*-------------------------------------------------------------------------*\ | 124 | /*-------------------------------------------------------------------------*\ |
130 | * Initializes module | 125 | * Initializes module |
131 | \*-------------------------------------------------------------------------*/ | 126 | \*-------------------------------------------------------------------------*/ |
132 | LUASOCKET_PRIVATE int tcp_open(lua_State *L) | 127 | int tcp_open(lua_State *L) |
133 | { | 128 | { |
134 | /* create classes */ | 129 | /* create classes */ |
135 | auxiliar_newclass(L, "tcp{master}", tcp_methods); | 130 | auxiliar_newclass(L, "tcp{master}", tcp_methods); |
@@ -14,7 +14,7 @@ | |||
14 | * tcp objects either connected to some address or returned by the accept | 14 | * tcp objects either connected to some address or returned by the accept |
15 | * method of a server object. | 15 | * method of a server object. |
16 | \*=========================================================================*/ | 16 | \*=========================================================================*/ |
17 | #include "lua.h" | 17 | #include "luasocket.h" |
18 | 18 | ||
19 | #include "buffer.h" | 19 | #include "buffer.h" |
20 | #include "timeout.h" | 20 | #include "timeout.h" |
@@ -30,6 +30,10 @@ typedef struct t_tcp_ { | |||
30 | 30 | ||
31 | typedef t_tcp *p_tcp; | 31 | typedef t_tcp *p_tcp; |
32 | 32 | ||
33 | #pragma GCC visibility push(hidden) | ||
34 | |||
33 | int tcp_open(lua_State *L); | 35 | int tcp_open(lua_State *L); |
34 | 36 | ||
37 | #pragma GCC visibility pop | ||
38 | |||
35 | #endif /* TCP_H */ | 39 | #endif /* TCP_H */ |