diff options
| author | E. Westbrook <github@westbrook.io> | 2019-02-27 21:02:13 -0700 |
|---|---|---|
| committer | E. Westbrook <github@westbrook.io> | 2019-03-10 00:04:20 -0700 |
| commit | 4e363330a3b9e6ba082869f87820690e501f0a2d (patch) | |
| tree | 4f94b79d8bc2e070fb761896c37b7006f2a61d83 /src | |
| parent | d27b1a79453dbafe122ca8aa59413a7cb8750c8d (diff) | |
| download | luasocket-4e363330a3b9e6ba082869f87820690e501f0a2d.tar.gz luasocket-4e363330a3b9e6ba082869f87820690e501f0a2d.tar.bz2 luasocket-4e363330a3b9e6ba082869f87820690e501f0a2d.zip | |
unixstream: pragma visibility
Diffstat (limited to 'src')
| -rw-r--r-- | src/unixstream.c | 6 | ||||
| -rw-r--r-- | src/unixstream.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/unixstream.c b/src/unixstream.c index ce2d3af..02aced9 100644 --- a/src/unixstream.c +++ b/src/unixstream.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" |
| @@ -82,7 +78,7 @@ static luaL_Reg func[] = { | |||
| 82 | /*-------------------------------------------------------------------------*\ | 78 | /*-------------------------------------------------------------------------*\ |
| 83 | * Initializes module | 79 | * Initializes module |
| 84 | \*-------------------------------------------------------------------------*/ | 80 | \*-------------------------------------------------------------------------*/ |
| 85 | LUASOCKET_PRIVATE int unixstream_open(lua_State *L) | 81 | int unixstream_open(lua_State *L) |
| 86 | { | 82 | { |
| 87 | /* create classes */ | 83 | /* create classes */ |
| 88 | auxiliar_newclass(L, "unixstream{master}", unixstream_methods); | 84 | auxiliar_newclass(L, "unixstream{master}", unixstream_methods); |
diff --git a/src/unixstream.h b/src/unixstream.h index ef1d071..8ffba8f 100644 --- a/src/unixstream.h +++ b/src/unixstream.h | |||
| @@ -16,6 +16,10 @@ | |||
| 16 | \*=========================================================================*/ | 16 | \*=========================================================================*/ |
| 17 | #include "unix.h" | 17 | #include "unix.h" |
| 18 | 18 | ||
| 19 | #pragma GCC visibility push(hidden) | ||
| 20 | |||
| 19 | int unixstream_open(lua_State *L); | 21 | int unixstream_open(lua_State *L); |
| 20 | 22 | ||
| 23 | #pragma GCC visibility pop | ||
| 24 | |||
| 21 | #endif /* UNIXSTREAM_H */ | 25 | #endif /* UNIXSTREAM_H */ |
