diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | configure.in | 13 | ||||
-rw-r--r-- | src/or/eventdns.c | 4 |
3 files changed, 15 insertions, 3 deletions
@@ -138,6 +138,7 @@ Changes in version 0.1.2.5-alpha - 2007-01-03 - When the user uses bad syntax in the Log config line, stop suggesting other bad syntax as a replacement. - Avoid a double-free when parsing malformed DirServer lines. + - Correctly detect ipv6 DNS capability on OpenBSD. o Controller features: - Have GETINFO dir/status/* work on hosts with DirPort disabled. diff --git a/configure.in b/configure.in index 3e5e540d0d..f495370d7a 100644 --- a/configure.in +++ b/configure.in @@ -472,7 +472,7 @@ AC_CHECK_HEADERS(zlib.h, , AC_MSG_ERROR(Zlib header (zlib.h) not found. Tor requ dnl These headers are not essential -AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h) +AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netintet/in.h netinet/in6.h) AC_CHECK_HEADERS(net/if.h, [net_if_found=1], [net_if_found=0], [#ifdef HAVE_SYS_TYPES_H @@ -555,8 +555,15 @@ AC_CHECK_SIZEOF(size_t) AC_CHECK_TYPES([uint, u_char]) AC_CHECK_TYPES([struct in6_addr, struct sockaddr_storage], , , -[#include <netinet/in.h> -#include <sys/socket.h>]) +[#ifdef HAVE_NETINET_IN_H +#include <netinet/in.h> +#endif +#ifdef HAVE_NETINET_IN6_H +#include <netinet/in6.h> +#endif +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif]) if test -z "$CROSS_COMPILE"; then AC_CACHE_CHECK([whether time_t is signed], tor_cv_time_t_signed, [ diff --git a/src/or/eventdns.c b/src/or/eventdns.c index cd5b386c07..97ee71bdb3 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -96,6 +96,10 @@ #include <arpa/inet.h> #endif +#ifdef HAVE_NETINET_IN6_H +#include <netinet/in6.h> +#endif + #ifdef WIN32 typedef int socklen_t; #endif |