diff options
| author | unknown <diego.nehab@gmail.com> | 2013-05-27 20:30:06 +0800 |
|---|---|---|
| committer | unknown <diego.nehab@gmail.com> | 2013-05-27 20:30:06 +0800 |
| commit | 26704061a4e28eff573f02297e6da045d166afa4 (patch) | |
| tree | 7ac69229fc585e03a887a94a7d4793576245b0c5 /src/inet.h | |
| parent | fbe184f28af85cda61394790e8114c6143057364 (diff) | |
| download | luasocket-26704061a4e28eff573f02297e6da045d166afa4.tar.gz luasocket-26704061a4e28eff573f02297e6da045d166afa4.tar.bz2 luasocket-26704061a4e28eff573f02297e6da045d166afa4.zip | |
Fix Visual Studio 2012 projects
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 |
