diff options
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); |