natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in HAVE_INET6.
* java/net/natInetAddress.cc (java::net::InetAddress::aton): Wrap use of inet_pton in HAVE_INET6. From-SVN: r41547
This commit is contained in:
parent
ddbb6d43a3
commit
9e65a913b6
|
@ -1,3 +1,8 @@
|
|||
2001-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* java/net/natInetAddress.cc (java::net::InetAddress::aton):
|
||||
Wrap use of inet_pton in HAVE_INET6.
|
||||
|
||||
2001-04-25 Bryce McKinlay <bryce@albatross.co.nz>
|
||||
|
||||
java.security merge and ClassLoader compliance fixes.
|
||||
|
|
|
@ -118,7 +118,7 @@ java::net::InetAddress::aton (jstring host)
|
|||
blen = 4;
|
||||
}
|
||||
#endif
|
||||
#ifdef HAVE_INET_PTON
|
||||
#if defined (HAVE_INET_PTON) && defined (HAVE_INET6)
|
||||
char inet6_addr[16];
|
||||
if (len == 0 && inet_pton (AF_INET6, hostname, inet6_addr) > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue