aboutsummaryrefslogtreecommitdiff
path: root/src/unix.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@impa.br>2013-06-11 17:20:27 +0800
committerDiego Nehab <diego@impa.br>2013-06-11 17:20:27 +0800
commit906abf29d146272512feddd74005a8833ee34e7d (patch)
tree0f2901170a39cdd7b33557966d5fe6f8298388e0 /src/unix.h
parentbc709ac7b71a1a2e8542c30a9c0dd07e6f70c0a0 (diff)
downloadluasocket-906abf29d146272512feddd74005a8833ee34e7d.tar.gz
luasocket-906abf29d146272512feddd74005a8833ee34e7d.tar.bz2
luasocket-906abf29d146272512feddd74005a8833ee34e7d.zip
Fix unix export marker.
Diffstat (limited to 'src/unix.h')
-rw-r--r--src/unix.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unix.h b/src/unix.h
index 3a7e1e6..8cc7a79 100644
--- a/src/unix.h
+++ b/src/unix.h
@@ -13,6 +13,10 @@
13#include "timeout.h" 13#include "timeout.h"
14#include "socket.h" 14#include "socket.h"
15 15
16#ifndef UNIX_API
17#define UNIX_API extern
18#endif
19
16typedef struct t_unix_ { 20typedef struct t_unix_ {
17 t_socket sock; 21 t_socket sock;
18 t_io io; 22 t_io io;
@@ -21,6 +25,6 @@ typedef struct t_unix_ {
21} t_unix; 25} t_unix;
22typedef t_unix *p_unix; 26typedef t_unix *p_unix;
23 27
24LUASOCKET_API int luaopen_socket_unix(lua_State *L); 28UNIX_API int luaopen_socket_unix(lua_State *L);
25 29
26#endif /* UNIX_H */ 30#endif /* UNIX_H */