aboutsummaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorunknown <diego.nehab@gmail.com>2013-05-27 20:30:06 +0800
committerunknown <diego.nehab@gmail.com>2013-05-27 20:30:06 +0800
commit26704061a4e28eff573f02297e6da045d166afa4 (patch)
tree7ac69229fc585e03a887a94a7d4793576245b0c5 /src/inet.c
parentfbe184f28af85cda61394790e8114c6143057364 (diff)
downloadluasocket-26704061a4e28eff573f02297e6da045d166afa4.tar.gz
luasocket-26704061a4e28eff573f02297e6da045d166afa4.tar.bz2
luasocket-26704061a4e28eff573f02297e6da045d166afa4.zip
Fix Visual Studio 2012 projects
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 5bc6364..51e8cfe 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -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
506int inet_aton(const char *cp, struct in_addr *inp) 506int 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
533const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt) 533const 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) {