mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-31 17:17:37 +03:00
de2a67b430
closing bug #114837 * configure.in: Added checks for IPv6 support and getaddrinfo(). * acconfig.h: Defined HAVE_GETADDRINFO and SUPPORT_IP6. * config.h.in: Defined HAVE_GETADDRINFO and SUPPORT_IP6. * nanoftp.c: Structure xmlNanoFTPCtxt contains either sockaddr_storage field or sockaddr_in field, depending upon the availability of IPv6 support. have_ipv6(): Added to check for run-time IPv6 support. (xmlNanoFTPScanURL), (xmlNanoFTPUpdateURL), (xmlNanoFTPScanProxy): Modified to parse a URI with IPv6 address given in []. (xmlNanoFTPConnect): Changed to use getaddrinfo for address resolution, if it is available on the system, as gethostbyname does not return IPv6 addresses on some platforms. (xmlNanoFTPGetConnection): Modified type of dataAddr variable to sockaddr_storage or sockaddr_in depending upon the IPv6 support. Sending EPSV, EPRT or PASV, PORT depending upon the type of address we are dealing with. * nanohttp.c: (have_ipv6): Added to check for run-time IPv6 support. (xmlNanoHTTPScanURL), (xmlNanoHTTPScanProxy): Modified to parse a URI with IPv6 address given in []. (xmlNanoHTTPConnectHost): Modified to use getaddrinfo if it is available on the system. Also IPv6 addresses will be resolved by gethostbyname only if IPv6 run-time support is available. (xmlNanoHTTPConnectAttempt): Modified to deal with IPv6 address. Daniel
18 lines
329 B
C
18 lines
329 B
C
#undef PACKAGE
|
|
#undef VERSION
|
|
#undef HAVE_LIBZ
|
|
#undef HAVE_LIBM
|
|
#undef HAVE_ISINF
|
|
#undef HAVE_ISNAN
|
|
#undef HAVE_LIBHISTORY
|
|
#undef HAVE_LIBREADLINE
|
|
#undef SOCKLEN_T
|
|
#undef HAVE_LIBPTHREAD
|
|
#undef HAVE_PTHREAD_H
|
|
|
|
/* Define if IPV6 support is there */
|
|
#undef SUPPORT_IP6
|
|
|
|
/* Define if getaddrinfo is there */
|
|
#undef HAVE_GETADDRINFO
|