aboutsummaryrefslogtreecommitdiff
path: root/src/unixdgram.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2019-03-11 00:08:41 -0300
committerGitHub <noreply@github.com>2019-03-11 00:08:41 -0300
commitc89a931cc31f219d51dd32a8a253d5ee3fbd31be (patch)
tree1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/unixdgram.c
parent2af4872a401cbd0c1255e19ee26620f0431dd9f5 (diff)
parent21514304be9e98a4386cb18542582068a59c5586 (diff)
downloadluasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.gz
luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.bz2
luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.zip
Merge pull request #271 from ewestbrook/pragmavisibility
Use visibility pragma around declarations instead of attributes on definitions
Diffstat (limited to 'src/unixdgram.c')
-rw-r--r--src/unixdgram.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/unixdgram.c b/src/unixdgram.c
index 840257a..3ac3c5e 100644
--- a/src/unixdgram.c
+++ b/src/unixdgram.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 "auxiliar.h" 7#include "auxiliar.h"
12#include "socket.h" 8#include "socket.h"
13#include "options.h" 9#include "options.h"
@@ -26,6 +22,7 @@
26 ((size_t) (((struct sockaddr_un *) 0)->sun_path) \ 22 ((size_t) (((struct sockaddr_un *) 0)->sun_path) \
27 + strlen ((ptr)->sun_path)) 23 + strlen ((ptr)->sun_path))
28#endif 24#endif
25
29/*=========================================================================*\ 26/*=========================================================================*\
30* Internal function prototypes 27* Internal function prototypes
31\*=========================================================================*/ 28\*=========================================================================*/
@@ -86,7 +83,7 @@ static luaL_Reg func[] = {
86/*-------------------------------------------------------------------------*\ 83/*-------------------------------------------------------------------------*\
87* Initializes module 84* Initializes module
88\*-------------------------------------------------------------------------*/ 85\*-------------------------------------------------------------------------*/
89LUASOCKET_PRIVATE int unixdgram_open(lua_State *L) 86int unixdgram_open(lua_State *L)
90{ 87{
91 /* create classes */ 88 /* create classes */
92 auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods); 89 auxiliar_newclass(L, "unixdgram{connected}", unixdgram_methods);