aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2019-02-26 00:06:02 -0300
committerGitHub <noreply@github.com>2019-02-26 00:06:02 -0300
commitc0fba03e4fe2a27a3471fa5af290be931f957002 (patch)
tree7a5f40572dd9ad9a6b56749cc256f7b658946873 /src/select.c
parent9b3f7a430454dc9568dfb063fbc324b29c5134d7 (diff)
parente2e43d62fa925e7e22385505ed0c635255c77c0a (diff)
downloadluasocket-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/select.c')
-rw-r--r--src/select.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c
index 9d133b7..b615b19 100644
--- a/src/select.c
+++ b/src/select.c
@@ -2,7 +2,7 @@
2* Select implementation 2* Select implementation
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 "timeout.h" 12#include "timeout.h"
13#include "select.h" 13#include "select.h"
14 14
15#include <string.h>
16
15/*=========================================================================*\ 17/*=========================================================================*\
16* Internal function prototypes. 18* Internal function prototypes.
17\*=========================================================================*/ 19\*=========================================================================*/
@@ -37,7 +39,7 @@ static luaL_Reg func[] = {
37/*-------------------------------------------------------------------------*\ 39/*-------------------------------------------------------------------------*\
38* Initializes module 40* Initializes module
39\*-------------------------------------------------------------------------*/ 41\*-------------------------------------------------------------------------*/
40int select_open(lua_State *L) { 42LUASOCKET_PRIVATE int select_open(lua_State *L) {
41 lua_pushstring(L, "_SETSIZE"); 43 lua_pushstring(L, "_SETSIZE");
42 lua_pushinteger(L, FD_SETSIZE); 44 lua_pushinteger(L, FD_SETSIZE);
43 lua_rawset(L, -3); 45 lua_rawset(L, -3);