diff options
Diffstat (limited to 'src/unix.h')
-rw-r--r-- | src/unix.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 | |||
16 | typedef struct t_unix_ { | 20 | typedef 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; |
22 | typedef t_unix *p_unix; | 26 | typedef t_unix *p_unix; |
23 | 27 | ||
24 | LUASOCKET_API int luaopen_socket_unix(lua_State *L); | 28 | UNIX_API int luaopen_socket_unix(lua_State *L); |
25 | 29 | ||
26 | #endif /* UNIX_H */ | 30 | #endif /* UNIX_H */ |