From d27b1a79453dbafe122ca8aa59413a7cb8750c8d Mon Sep 17 00:00:00 2001 From: "E. Westbrook" Date: Wed, 27 Feb 2019 21:02:01 -0700 Subject: [PATCH] unixdgram: pragma visibility --- src/unixdgram.c | 7 ++----- src/unixdgram.h | 4 ++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/unixdgram.c b/src/unixdgram.c index 840257a..3ac3c5e 100644 --- a/src/unixdgram.c +++ b/src/unixdgram.c @@ -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); diff --git a/src/unixdgram.h b/src/unixdgram.h index 7187966..433fe25 100644 --- a/src/unixdgram.h +++ b/src/unixdgram.h @@ -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 */