diff options
author | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
commit | 5c4fc93d5f4137bf4c22ddf1a048c907a4a26727 (patch) | |
tree | a9a68e1f6a9c3bfe2b64fa1c3a4098865b7d3b5d /src/unix.h | |
parent | ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (diff) | |
parent | 43a97b7f0053313b43906371dbdc226271e6c8ab (diff) | |
download | luasocket-hjelmeland-patch-1.tar.gz luasocket-hjelmeland-patch-1.tar.bz2 luasocket-hjelmeland-patch-1.zip |
Merge branch 'master' into hjelmeland-patch-1hjelmeland-patch-1
Diffstat (limited to '')
-rw-r--r-- | src/unix.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -7,16 +7,12 @@ | |||
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 "lua.h" | 10 | #include "luasocket.h" |
11 | 11 | ||
12 | #include "buffer.h" | 12 | #include "buffer.h" |
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 | |||
20 | typedef struct t_unix_ { | 16 | typedef struct t_unix_ { |
21 | t_socket sock; | 17 | t_socket sock; |
22 | t_io io; | 18 | t_io io; |
@@ -25,6 +21,6 @@ typedef struct t_unix_ { | |||
25 | } t_unix; | 21 | } t_unix; |
26 | typedef t_unix *p_unix; | 22 | typedef t_unix *p_unix; |
27 | 23 | ||
28 | UNIX_API int luaopen_socket_unix(lua_State *L); | 24 | LUASOCKET_API int luaopen_socket_unix(lua_State *L); |
29 | 25 | ||
30 | #endif /* UNIX_H */ | 26 | #endif /* UNIX_H */ |