aboutsummaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inet.c b/src/inet.c
index 0469756..eab325e 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -520,7 +520,7 @@ const char *inet_trybind(p_socket ps, const char *address, const char *serv,
520* Some systems do not provide this so that we provide our own. It's not 520* Some systems do not provide this so that we provide our own. It's not
521* marvelously fast, but it works just fine. 521* marvelously fast, but it works just fine.
522\*-------------------------------------------------------------------------*/ 522\*-------------------------------------------------------------------------*/
523#ifdef INET_ATON 523#ifdef LUASOCKET_INET_ATON
524int inet_aton(const char *cp, struct in_addr *inp) 524int inet_aton(const char *cp, struct in_addr *inp)
525{ 525{
526 unsigned int a = 0, b = 0, c = 0, d = 0; 526 unsigned int a = 0, b = 0, c = 0, d = 0;
@@ -547,7 +547,7 @@ int inet_aton(const char *cp, struct in_addr *inp)
547* http://mingw-users.1079350.n2.nabble.com/IPv6-getaddrinfo-amp-inet-ntop-td5891996.html 547* http://mingw-users.1079350.n2.nabble.com/IPv6-getaddrinfo-amp-inet-ntop-td5891996.html
548\*-------------------------------------------------------------------------*/ 548\*-------------------------------------------------------------------------*/
549 549
550#ifdef INET_PTON 550#ifdef LUASOCKET_INET_PTON
551const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt) 551const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt)
552{ 552{
553 if (af == AF_INET) { 553 if (af == AF_INET) {