unixdgram: pragma visibility

master
E. Westbrook 2019-02-27 21:02:01 -07:00
parent 5d07d9b227
commit d27b1a7945
2 changed files with 6 additions and 5 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 "options.h"
@ -26,6 +22,7 @@
((size_t) (((struct sockaddr_un *) 0)->sun_path) \
+ strlen ((ptr)->sun_path))
#endif
/*=========================================================================*\
* Internal function prototypes
\*=========================================================================*/
@ -86,7 +83,7 @@ static luaL_Reg func[] = {
/*-------------------------------------------------------------------------*\
* Initializes module
\*-------------------------------------------------------------------------*/
LUASOCKET_PRIVATE int unixdgram_open(lua_State *L)
int unixdgram_open(lua_State *L)
{
/* create classes */
auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods);

View File

@ -15,6 +15,10 @@
#include "unix.h"
#pragma GCC visibility push(hidden)
int unixdgram_open(lua_State *L);
#pragma GCC visibility pop
#endif /* UNIXDGRAM_H */