diff options
Diffstat (limited to 'src/inet.c')
| -rw-r--r-- | src/inet.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -502,7 +502,7 @@ const char *inet_trybind(p_socket ps, const char *address, const char *serv, | |||
| 502 | * Some systems do not provide this so that we provide our own. It's not | 502 | * Some systems do not provide this so that we provide our own. It's not |
| 503 | * marvelously fast, but it works just fine. | 503 | * marvelously fast, but it works just fine. |
| 504 | \*-------------------------------------------------------------------------*/ | 504 | \*-------------------------------------------------------------------------*/ |
| 505 | #ifdef INET_ATON | 505 | #ifdef LUASOCKET_INET_ATON |
| 506 | int inet_aton(const char *cp, struct in_addr *inp) | 506 | int inet_aton(const char *cp, struct in_addr *inp) |
| 507 | { | 507 | { |
| 508 | unsigned int a = 0, b = 0, c = 0, d = 0; | 508 | unsigned int a = 0, b = 0, c = 0, d = 0; |
| @@ -529,7 +529,7 @@ int inet_aton(const char *cp, struct in_addr *inp) | |||
| 529 | * http://mingw-users.1079350.n2.nabble.com/IPv6-getaddrinfo-amp-inet-ntop-td5891996.html | 529 | * http://mingw-users.1079350.n2.nabble.com/IPv6-getaddrinfo-amp-inet-ntop-td5891996.html |
| 530 | \*-------------------------------------------------------------------------*/ | 530 | \*-------------------------------------------------------------------------*/ |
| 531 | 531 | ||
| 532 | #ifdef INET_PTON | 532 | #ifdef LUASOCKET_INET_PTON |
| 533 | const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt) | 533 | const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt) |
| 534 | { | 534 | { |
| 535 | if (af == AF_INET) { | 535 | if (af == AF_INET) { |
