aboutsummaryrefslogtreecommitdiff
path: root/src/inet.h
diff options
context:
space:
mode:
authormoteus <mimir@newmail.ru>2013-05-28 14:06:18 +0400
committermoteus <mimir@newmail.ru>2013-05-28 14:06:18 +0400
commit5167ddaf499cf198b10208a2f76c27629e99ae1b (patch)
tree193b3a7199ad5b0cfbe8a0d02e5fa469394608b6 /src/inet.h
parent45ff0e17753201f4c42c714fdc28898c73e59eb9 (diff)
parent2d51d6168874cdb2b72ee4f56f414d9a9a9d92e5 (diff)
downloadluasocket-5167ddaf499cf198b10208a2f76c27629e99ae1b.tar.gz
luasocket-5167ddaf499cf198b10208a2f76c27629e99ae1b.tar.bz2
luasocket-5167ddaf499cf198b10208a2f76c27629e99ae1b.zip
Merge branch 'unstable' of git://github.com/diegonehab/luasocket into moteus-lua52
Diffstat (limited to 'src/inet.h')
-rw-r--r--src/inet.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/inet.h b/src/inet.h
index 252e293..1f1a96a 100644
--- a/src/inet.h
+++ b/src/inet.h
@@ -19,8 +19,7 @@
19#include "timeout.h" 19#include "timeout.h"
20 20
21#ifdef _WIN32 21#ifdef _WIN32
22#define INET_ATON 22#define LUASOCKET_INET_ATON
23#define INET_PTON
24#endif 23#endif
25 24
26int inet_open(lua_State *L); 25int inet_open(lua_State *L);
@@ -39,11 +38,11 @@ int inet_meth_getsockname(lua_State *L, p_socket ps, int family);
39int inet_optfamily(lua_State* L, int narg, const char* def); 38int inet_optfamily(lua_State* L, int narg, const char* def);
40int inet_optsocktype(lua_State* L, int narg, const char* def); 39int inet_optsocktype(lua_State* L, int narg, const char* def);
41 40
42#ifdef INET_ATON 41#ifdef LUASOCKET_INET_ATON
43int inet_aton(const char *cp, struct in_addr *inp); 42int inet_aton(const char *cp, struct in_addr *inp);
44#endif 43#endif
45 44
46#ifdef INET_PTON 45#ifdef LUASOCKET_INET_PTON
47const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); 46const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
48int inet_pton(int af, const char *src, void *dst); 47int inet_pton(int af, const char *src, void *dst);
49#endif 48#endif