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/unix.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/unix.c')
-rw-r--r-- | src/unix.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,6 +2,8 @@ | |||
2 | * Unix domain socket | 2 | * Unix domain socket |
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include "luasocket.h" | ||
6 | |||
5 | #include "lua.h" | 7 | #include "lua.h" |
6 | #include "lauxlib.h" | 8 | #include "lauxlib.h" |
7 | 9 | ||
@@ -45,7 +47,7 @@ static int compat_socket_unix_call(lua_State *L) | |||
45 | /*-------------------------------------------------------------------------*\ | 47 | /*-------------------------------------------------------------------------*\ |
46 | * Initializes module | 48 | * Initializes module |
47 | \*-------------------------------------------------------------------------*/ | 49 | \*-------------------------------------------------------------------------*/ |
48 | int luaopen_socket_unix(lua_State *L) | 50 | LUASOCKET_API int luaopen_socket_unix(lua_State *L) |
49 | { | 51 | { |
50 | int i; | 52 | int i; |
51 | lua_newtable(L); | 53 | lua_newtable(L); |