aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2019-02-25 15:55:36 -0700
committerE. Westbrook <github@westbrook.io>2019-02-25 15:55:36 -0700
commitc23bf865ce32666e8f3bb0abd7d82f84a891ce82 (patch)
tree82b28e2f299b6d62055482ba424252407cab8e6a
parentefc4bb3e2df90732d46b8b1cdae18c8173bad07b (diff)
downloadluasocket-c23bf865ce32666e8f3bb0abd7d82f84a891ce82.tar.gz
luasocket-c23bf865ce32666e8f3bb0abd7d82f84a891ce82.tar.bz2
luasocket-c23bf865ce32666e8f3bb0abd7d82f84a891ce82.zip
unix.h: use LUASOCKET_API
-rw-r--r--src/unix.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/unix.h b/src/unix.h
index 8cc7a79..a1674ef 100644
--- a/src/unix.h
+++ b/src/unix.h
@@ -7,16 +7,13 @@
7* This module is just an example of how to extend LuaSocket with a new 7* This module is just an example of how to extend LuaSocket with a new
8* domain. 8* domain.
9\*=========================================================================*/ 9\*=========================================================================*/
10#include "luasocket.h"
10#include "lua.h" 11#include "lua.h"
11 12
12#include "buffer.h" 13#include "buffer.h"
13#include "timeout.h" 14#include "timeout.h"
14#include "socket.h" 15#include "socket.h"
15 16
16#ifndef UNIX_API
17#define UNIX_API extern
18#endif
19
20typedef struct t_unix_ { 17typedef struct t_unix_ {
21 t_socket sock; 18 t_socket sock;
22 t_io io; 19 t_io io;
@@ -25,6 +22,6 @@ typedef struct t_unix_ {
25} t_unix; 22} t_unix;
26typedef t_unix *p_unix; 23typedef t_unix *p_unix;
27 24
28UNIX_API int luaopen_socket_unix(lua_State *L); 25LUASOCKET_API int luaopen_socket_unix(lua_State *L);
29 26
30#endif /* UNIX_H */ 27#endif /* UNIX_H */