tcp: pragma visibility

This commit is contained in:
E. Westbrook 2019-02-27 21:01:06 -07:00
parent 1fa10673f7
commit 86e1b3f45f
2 changed files with 6 additions and 7 deletions

View File

@ -4,12 +4,7 @@
\*=========================================================================*/ \*=========================================================================*/
#include "luasocket.h" #include "luasocket.h"
#include "lua.h"
#include "lauxlib.h"
#include "compat.h"
#include "auxiliar.h" #include "auxiliar.h"
#include "socket.h" #include "socket.h"
#include "inet.h" #include "inet.h"
#include "options.h" #include "options.h"
@ -129,7 +124,7 @@ static luaL_Reg func[] = {
/*-------------------------------------------------------------------------*\ /*-------------------------------------------------------------------------*\
* Initializes module * Initializes module
\*-------------------------------------------------------------------------*/ \*-------------------------------------------------------------------------*/
LUASOCKET_PRIVATE int tcp_open(lua_State *L) int tcp_open(lua_State *L)
{ {
/* create classes */ /* create classes */
auxiliar_newclass(L, "tcp{master}", tcp_methods); auxiliar_newclass(L, "tcp{master}", tcp_methods);

View File

@ -14,7 +14,7 @@
* tcp objects either connected to some address or returned by the accept * tcp objects either connected to some address or returned by the accept
* method of a server object. * method of a server object.
\*=========================================================================*/ \*=========================================================================*/
#include "lua.h" #include "luasocket.h"
#include "buffer.h" #include "buffer.h"
#include "timeout.h" #include "timeout.h"
@ -30,6 +30,10 @@ typedef struct t_tcp_ {
typedef t_tcp *p_tcp; typedef t_tcp *p_tcp;
#pragma GCC visibility push(hidden)
int tcp_open(lua_State *L); int tcp_open(lua_State *L);
#pragma GCC visibility pop
#endif /* TCP_H */ #endif /* TCP_H */