mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 12:08:21 +01:00
unixdgram: pragma visibility
This commit is contained in:
parent
5d07d9b227
commit
d27b1a7945
@ -4,10 +4,6 @@
|
||||
\*=========================================================================*/
|
||||
#include "luasocket.h"
|
||||
|
||||
#include "lua.h"
|
||||
#include "lauxlib.h"
|
||||
#include "compat.h"
|
||||
|
||||
#include "auxiliar.h"
|
||||
#include "socket.h"
|
||||
#include "options.h"
|
||||
@ -26,6 +22,7 @@
|
||||
((size_t) (((struct sockaddr_un *) 0)->sun_path) \
|
||||
+ strlen ((ptr)->sun_path))
|
||||
#endif
|
||||
|
||||
/*=========================================================================*\
|
||||
* Internal function prototypes
|
||||
\*=========================================================================*/
|
||||
@ -86,7 +83,7 @@ static luaL_Reg func[] = {
|
||||
/*-------------------------------------------------------------------------*\
|
||||
* Initializes module
|
||||
\*-------------------------------------------------------------------------*/
|
||||
LUASOCKET_PRIVATE int unixdgram_open(lua_State *L)
|
||||
int unixdgram_open(lua_State *L)
|
||||
{
|
||||
/* create classes */
|
||||
auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods);
|
||||
|
@ -15,6 +15,10 @@
|
||||
|
||||
#include "unix.h"
|
||||
|
||||
#pragma GCC visibility push(hidden)
|
||||
|
||||
int unixdgram_open(lua_State *L);
|
||||
|
||||
#pragma GCC visibility pop
|
||||
|
||||
#endif /* UNIXDGRAM_H */
|
||||
|
Loading…
Reference in New Issue
Block a user