diff options
| -rw-r--r-- | src/udp.c | 6 | ||||
| -rw-r--r-- | src/udp.h | 6 |
2 files changed, 6 insertions, 6 deletions
| @@ -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 "inet.h" | 9 | #include "inet.h" |
| @@ -124,7 +120,7 @@ static luaL_Reg func[] = { | |||
| 124 | /*-------------------------------------------------------------------------*\ | 120 | /*-------------------------------------------------------------------------*\ |
| 125 | * Initializes module | 121 | * Initializes module |
| 126 | \*-------------------------------------------------------------------------*/ | 122 | \*-------------------------------------------------------------------------*/ |
| 127 | LUASOCKET_PRIVATE int udp_open(lua_State *L) { | 123 | int udp_open(lua_State *L) { |
| 128 | /* create classes */ | 124 | /* create classes */ |
| 129 | auxiliar_newclass(L, "udp{connected}", udp_methods); | 125 | auxiliar_newclass(L, "udp{connected}", udp_methods); |
| 130 | auxiliar_newclass(L, "udp{unconnected}", udp_methods); | 126 | auxiliar_newclass(L, "udp{unconnected}", udp_methods); |
| @@ -12,7 +12,7 @@ | |||
| 12 | * with a call to the setpeername function. The same function can be used to | 12 | * with a call to the setpeername function. The same function can be used to |
| 13 | * break the connection. | 13 | * break the connection. |
| 14 | \*=========================================================================*/ | 14 | \*=========================================================================*/ |
| 15 | #include "lua.h" | 15 | #include "luasocket.h" |
| 16 | 16 | ||
| 17 | #include "timeout.h" | 17 | #include "timeout.h" |
| 18 | #include "socket.h" | 18 | #include "socket.h" |
| @@ -26,6 +26,10 @@ typedef struct t_udp_ { | |||
| 26 | } t_udp; | 26 | } t_udp; |
| 27 | typedef t_udp *p_udp; | 27 | typedef t_udp *p_udp; |
| 28 | 28 | ||
| 29 | #pragma GCC visibility push(hidden) | ||
| 30 | |||
| 29 | int udp_open(lua_State *L); | 31 | int udp_open(lua_State *L); |
| 30 | 32 | ||
| 33 | #pragma GCC visibility pop | ||
| 34 | |||
| 31 | #endif /* UDP_H */ | 35 | #endif /* UDP_H */ |
