diff options
author | E. Westbrook <github@westbrook.io> | 2019-02-25 16:01:44 -0700 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2019-02-25 16:01:44 -0700 |
commit | fe437ee844e8e51ef0b7437bb34efd8c18927a75 (patch) | |
tree | df7e02a7d56b3291b5d0c86b628c6d2b07251edd /src | |
parent | 678d558c5f5db9af64d33ae78c37056a44848b4c (diff) | |
download | luasocket-fe437ee844e8e51ef0b7437bb34efd8c18927a75.tar.gz luasocket-fe437ee844e8e51ef0b7437bb34efd8c18927a75.tar.bz2 luasocket-fe437ee844e8e51ef0b7437bb34efd8c18927a75.zip |
unixstream.c: use LUASOCKET_PRIVATE
Diffstat (limited to 'src')
-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); |