From c23bf865ce32666e8f3bb0abd7d82f84a891ce82 Mon Sep 17 00:00:00 2001 From: "E. Westbrook" Date: Mon, 25 Feb 2019 15:55:36 -0700 Subject: unix.h: use LUASOCKET_API --- src/unix.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/unix.h') 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 @@ * This module is just an example of how to extend LuaSocket with a new * domain. \*=========================================================================*/ +#include "luasocket.h" #include "lua.h" #include "buffer.h" #include "timeout.h" #include "socket.h" -#ifndef UNIX_API -#define UNIX_API extern -#endif - typedef struct t_unix_ { t_socket sock; t_io io; @@ -25,6 +22,6 @@ typedef struct t_unix_ { } t_unix; typedef t_unix *p_unix; -UNIX_API int luaopen_socket_unix(lua_State *L); +LUASOCKET_API int luaopen_socket_unix(lua_State *L); #endif /* UNIX_H */ -- cgit v1.2.3-55-g6feb From 5d07d9b2275fba742a297acde76636f6054a7906 Mon Sep 17 00:00:00 2001 From: "E. Westbrook" Date: Wed, 27 Feb 2019 21:01:46 -0700 Subject: unix: include reorg --- src/unix.c | 3 --- src/unix.h | 1 - 2 files changed, 4 deletions(-) (limited to 'src/unix.h') diff --git a/src/unix.c b/src/unix.c index c618a20..268d8b2 100644 --- a/src/unix.c +++ b/src/unix.c @@ -4,9 +4,6 @@ \*=========================================================================*/ #include "luasocket.h" -#include "lua.h" -#include "lauxlib.h" - #include "unixstream.h" #include "unixdgram.h" diff --git a/src/unix.h b/src/unix.h index a1674ef..c203561 100644 --- a/src/unix.h +++ b/src/unix.h @@ -8,7 +8,6 @@ * domain. \*=========================================================================*/ #include "luasocket.h" -#include "lua.h" #include "buffer.h" #include "timeout.h" -- cgit v1.2.3-55-g6feb