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/unixdgram.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/unixdgram.c')
-rw-r--r-- | src/unixdgram.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/unixdgram.c b/src/unixdgram.c index 0d6f18c..840257a 100644 --- a/src/unixdgram.c +++ b/src/unixdgram.c | |||
@@ -2,8 +2,7 @@ | |||
2 | * Unix domain socket dgram submodule | 2 | * Unix domain socket dgram submodule |
3 | * LuaSocket toolkit | 3 | * LuaSocket toolkit |
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include <string.h> | 5 | #include "luasocket.h" |
6 | #include <stdlib.h> | ||
7 | 6 | ||
8 | #include "lua.h" | 7 | #include "lua.h" |
9 | #include "lauxlib.h" | 8 | #include "lauxlib.h" |
@@ -13,6 +12,10 @@ | |||
13 | #include "socket.h" | 12 | #include "socket.h" |
14 | #include "options.h" | 13 | #include "options.h" |
15 | #include "unix.h" | 14 | #include "unix.h" |
15 | |||
16 | #include <string.h> | ||
17 | #include <stdlib.h> | ||
18 | |||
16 | #include <sys/un.h> | 19 | #include <sys/un.h> |
17 | 20 | ||
18 | #define UNIXDGRAM_DATAGRAMSIZE 8192 | 21 | #define UNIXDGRAM_DATAGRAMSIZE 8192 |
@@ -83,7 +86,7 @@ static luaL_Reg func[] = { | |||
83 | /*-------------------------------------------------------------------------*\ | 86 | /*-------------------------------------------------------------------------*\ |
84 | * Initializes module | 87 | * Initializes module |
85 | \*-------------------------------------------------------------------------*/ | 88 | \*-------------------------------------------------------------------------*/ |
86 | int unixdgram_open(lua_State *L) | 89 | LUASOCKET_PRIVATE int unixdgram_open(lua_State *L) |
87 | { | 90 | { |
88 | /* create classes */ | 91 | /* create classes */ |
89 | auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods); | 92 | auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods); |