diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2019-02-26 00:06:02 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 00:06:02 -0300 |
commit | c0fba03e4fe2a27a3471fa5af290be931f957002 (patch) | |
tree | 7a5f40572dd9ad9a6b56749cc256f7b658946873 /src/unixstream.c | |
parent | 9b3f7a430454dc9568dfb063fbc324b29c5134d7 (diff) | |
parent | e2e43d62fa925e7e22385505ed0c635255c77c0a (diff) | |
download | luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.tar.gz luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.tar.bz2 luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.zip |
Merge pull request #270 from ewestbrook/functionvisibility
Tag functions explicitly for shared library visibility
Diffstat (limited to 'src/unixstream.c')
-rw-r--r-- | src/unixstream.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/unixstream.c b/src/unixstream.c index 0b9055c..ce2d3af 100644 --- a/src/unixstream.c +++ b/src/unixstream.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * Unix domain socket stream sub module | 2 | * Unix domain socket stream sub module |
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include <string.h> | 5 | #include "luasocket.h" |
6 | 6 | ||
7 | #include "lua.h" | 7 | #include "lua.h" |
8 | #include "lauxlib.h" | 8 | #include "lauxlib.h" |
@@ -12,6 +12,8 @@ | |||
12 | #include "socket.h" | 12 | #include "socket.h" |
13 | #include "options.h" | 13 | #include "options.h" |
14 | #include "unixstream.h" | 14 | #include "unixstream.h" |
15 | |||
16 | #include <string.h> | ||
15 | #include <sys/un.h> | 17 | #include <sys/un.h> |
16 | 18 | ||
17 | /*=========================================================================*\ | 19 | /*=========================================================================*\ |
@@ -80,7 +82,7 @@ static luaL_Reg func[] = { | |||
80 | /*-------------------------------------------------------------------------*\ | 82 | /*-------------------------------------------------------------------------*\ |
81 | * Initializes module | 83 | * Initializes module |
82 | \*-------------------------------------------------------------------------*/ | 84 | \*-------------------------------------------------------------------------*/ |
83 | int unixstream_open(lua_State *L) | 85 | LUASOCKET_PRIVATE int unixstream_open(lua_State *L) |
84 | { | 86 | { |
85 | /* create classes */ | 87 | /* create classes */ |
86 | auxiliar_newclass(L, "unixstream{master}", unixstream_methods); | 88 | auxiliar_newclass(L, "unixstream{master}", unixstream_methods); |