udp: pragma visibility

master
E. Westbrook 2019-02-27 21:01:25 -07:00
parent 42a1a732b7
commit d71e6bc459
2 changed files with 6 additions and 6 deletions

View File

@ -4,10 +4,6 @@
\*=========================================================================*/
#include "luasocket.h"
#include "lua.h"
#include "lauxlib.h"
#include "compat.h"
#include "auxiliar.h"
#include "socket.h"
#include "inet.h"
@ -124,7 +120,7 @@ static luaL_Reg func[] = {
/*-------------------------------------------------------------------------*\
* Initializes module
\*-------------------------------------------------------------------------*/
LUASOCKET_PRIVATE int udp_open(lua_State *L) {
int udp_open(lua_State *L) {
/* create classes */
auxiliar_newclass(L, "udp{connected}", udp_methods);
auxiliar_newclass(L, "udp{unconnected}", udp_methods);

View File

@ -12,7 +12,7 @@
* with a call to the setpeername function. The same function can be used to
* break the connection.
\*=========================================================================*/
#include "lua.h"
#include "luasocket.h"
#include "timeout.h"
#include "socket.h"
@ -26,6 +26,10 @@ typedef struct t_udp_ {
} t_udp;
typedef t_udp *p_udp;
#pragma GCC visibility push(hidden)
int udp_open(lua_State *L);
#pragma GCC visibility pop
#endif /* UDP_H */