select.c: use LUASOCKET_PRIVATE

master
E. Westbrook 2019-02-25 15:59:29 -07:00
parent ef2a3fcedb
commit fae993c118
1 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* Select implementation
* LuaSocket toolkit
\*=========================================================================*/
#include <string.h>
#include "luasocket.h"
#include "lua.h"
#include "lauxlib.h"
@ -12,6 +12,8 @@
#include "timeout.h"
#include "select.h"
#include <string.h>
/*=========================================================================*\
* Internal function prototypes.
\*=========================================================================*/
@ -37,7 +39,7 @@ static luaL_Reg func[] = {
/*-------------------------------------------------------------------------*\
* Initializes module
\*-------------------------------------------------------------------------*/
int select_open(lua_State *L) {
LUASOCKET_PRIVATE int select_open(lua_State *L) {
lua_pushstring(L, "_SETSIZE");
lua_pushinteger(L, FD_SETSIZE);
lua_rawset(L, -3);