aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2019-02-27 21:02:01 -0700
committerE. Westbrook <github@westbrook.io>2019-03-10 00:04:20 -0700
commitd27b1a79453dbafe122ca8aa59413a7cb8750c8d (patch)
tree67b60f14d1f93c200f0533cf4427de9d3f614e99 /src
parent5d07d9b2275fba742a297acde76636f6054a7906 (diff)
downloadluasocket-d27b1a79453dbafe122ca8aa59413a7cb8750c8d.tar.gz
luasocket-d27b1a79453dbafe122ca8aa59413a7cb8750c8d.tar.bz2
luasocket-d27b1a79453dbafe122ca8aa59413a7cb8750c8d.zip
unixdgram: pragma visibility
Diffstat (limited to 'src')
-rw-r--r--src/unixdgram.c7
-rw-r--r--src/unixdgram.h4
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 @@
4\*=========================================================================*/ 4\*=========================================================================*/
5#include "luasocket.h" 5#include "luasocket.h"
6 6
7#include "lua.h"
8#include "lauxlib.h"
9#include "compat.h"
10
11#include "auxiliar.h" 7#include "auxiliar.h"
12#include "socket.h" 8#include "socket.h"
13#include "options.h" 9#include "options.h"
@@ -26,6 +22,7 @@
26 ((size_t) (((struct sockaddr_un *) 0)->sun_path) \ 22 ((size_t) (((struct sockaddr_un *) 0)->sun_path) \
27 + strlen ((ptr)->sun_path)) 23 + strlen ((ptr)->sun_path))
28#endif 24#endif
25
29/*=========================================================================*\ 26/*=========================================================================*\
30* Internal function prototypes 27* Internal function prototypes
31\*=========================================================================*/ 28\*=========================================================================*/
@@ -86,7 +83,7 @@ static luaL_Reg func[] = {
86/*-------------------------------------------------------------------------*\ 83/*-------------------------------------------------------------------------*\
87* Initializes module 84* Initializes module
88\*-------------------------------------------------------------------------*/ 85\*-------------------------------------------------------------------------*/
89LUASOCKET_PRIVATE int unixdgram_open(lua_State *L) 86int unixdgram_open(lua_State *L)
90{ 87{
91 /* create classes */ 88 /* create classes */
92 auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods); 89 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 @@
15 15
16#include "unix.h" 16#include "unix.h"
17 17
18#pragma GCC visibility push(hidden)
19
18int unixdgram_open(lua_State *L); 20int unixdgram_open(lua_State *L);
19 21
22#pragma GCC visibility pop
23
20#endif /* UNIXDGRAM_H */ 24#endif /* UNIXDGRAM_H */