diff options
-rw-r--r-- | src/select.c | 10 | ||||
-rw-r--r-- | src/select.h | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/select.c b/src/select.c index b615b19..bb47c45 100644 --- a/src/select.c +++ b/src/select.c | |||
@@ -4,10 +4,6 @@ | |||
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include "luasocket.h" | 5 | #include "luasocket.h" |
6 | 6 | ||
7 | #include "lua.h" | ||
8 | #include "lauxlib.h" | ||
9 | #include "compat.h" | ||
10 | |||
11 | #include "socket.h" | 7 | #include "socket.h" |
12 | #include "timeout.h" | 8 | #include "timeout.h" |
13 | #include "select.h" | 9 | #include "select.h" |
@@ -33,13 +29,10 @@ static luaL_Reg func[] = { | |||
33 | {NULL, NULL} | 29 | {NULL, NULL} |
34 | }; | 30 | }; |
35 | 31 | ||
36 | /*=========================================================================*\ | ||
37 | * Exported functions | ||
38 | \*=========================================================================*/ | ||
39 | /*-------------------------------------------------------------------------*\ | 32 | /*-------------------------------------------------------------------------*\ |
40 | * Initializes module | 33 | * Initializes module |
41 | \*-------------------------------------------------------------------------*/ | 34 | \*-------------------------------------------------------------------------*/ |
42 | LUASOCKET_PRIVATE int select_open(lua_State *L) { | 35 | int select_open(lua_State *L) { |
43 | lua_pushstring(L, "_SETSIZE"); | 36 | lua_pushstring(L, "_SETSIZE"); |
44 | lua_pushinteger(L, FD_SETSIZE); | 37 | lua_pushinteger(L, FD_SETSIZE); |
45 | lua_rawset(L, -3); | 38 | lua_rawset(L, -3); |
@@ -219,4 +212,3 @@ static void make_assoc(lua_State *L, int tab) { | |||
219 | i = i+1; | 212 | i = i+1; |
220 | } | 213 | } |
221 | } | 214 | } |
222 | |||
diff --git a/src/select.h b/src/select.h index 8750200..95272db 100644 --- a/src/select.h +++ b/src/select.h | |||
@@ -10,6 +10,10 @@ | |||
10 | * true if there is data ready for reading (required for buffered input). | 10 | * true if there is data ready for reading (required for buffered input). |
11 | \*=========================================================================*/ | 11 | \*=========================================================================*/ |
12 | 12 | ||
13 | #pragma GCC visibility push(hidden) | ||
14 | |||
13 | int select_open(lua_State *L); | 15 | int select_open(lua_State *L); |
14 | 16 | ||
17 | #pragma GCC visibility pop | ||
18 | |||
15 | #endif /* SELECT_H */ | 19 | #endif /* SELECT_H */ |