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