diff options
Diffstat (limited to 'src/inet.h')
-rw-r--r-- | src/inet.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 | ||
26 | int inet_open(lua_State *L); | 25 | int inet_open(lua_State *L); |
@@ -39,11 +38,11 @@ int inet_meth_getsockname(lua_State *L, p_socket ps, int family); | |||
39 | int inet_optfamily(lua_State* L, int narg, const char* def); | 38 | int inet_optfamily(lua_State* L, int narg, const char* def); |
40 | int inet_optsocktype(lua_State* L, int narg, const char* def); | 39 | int inet_optsocktype(lua_State* L, int narg, const char* def); |
41 | 40 | ||
42 | #ifdef INET_ATON | 41 | #ifdef LUASOCKET_INET_ATON |
43 | int inet_aton(const char *cp, struct in_addr *inp); | 42 | int inet_aton(const char *cp, struct in_addr *inp); |
44 | #endif | 43 | #endif |
45 | 44 | ||
46 | #ifdef INET_PTON | 45 | #ifdef LUASOCKET_INET_PTON |
47 | const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); | 46 | const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); |
48 | int inet_pton(int af, const char *src, void *dst); | 47 | int inet_pton(int af, const char *src, void *dst); |
49 | #endif | 48 | #endif |