From 3d21a36bac3308e6ff53447661b3007458c1d04a Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Sun, 27 Jul 2014 02:18:47 +0200 Subject: [PATCH] Always assume HAVE_IPV6 With this Solaris 2.6 and 7 is strictly unsupported, as we remove the configure.ac special casing for them. --- configure.ac | 12 ------------ pdns/nameserver.cc | 3 --- pdns/tcpreceiver.cc | 2 -- 3 files changed, 17 deletions(-) diff --git a/configure.ac b/configure.ac index c3fa71b5bf..c399645d95 100644 --- a/configure.ac +++ b/configure.ac @@ -144,38 +144,26 @@ THREADFLAGS="" AM_CONDITIONAL([OS_MACOSX], false) case "$host_os" in solaris2.10) - AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) LIBS="-lposix4 -lresolv -lnsl -lsocket -lpthread -lrt $LIBS" CXXFLAGS="-D_REENTRANT $CXXFLAGS" ;; - solaris2.8 | solaris2.9 ) - AC_DEFINE(NEED_POSIX_TYPEDEF,,[If POSIX typedefs need to be defined]) - AC_DEFINE(NEED_INET_NTOP_PROTO,,[If your OS is so broken that it needs an additional prototype]) - AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) - LIBS="-lposix4 -lresolv -lnsl -lsocket -lpthread $LIBS" - CXXFLAGS="-D_REENTRANT $CXXFLAGS" - ;; -solaris2.6 | solaris2.7) AC_DEFINE(NEED_POSIX_TYPEDEF,,[If POSIX typedefs need to be defined]) AC_DEFINE(NEED_INET_NTOP_PROTO,,[If your OS is so broken that it needs an additional prototype]) LIBS="-lposix4 -lresolv -lnsl -lsocket -lpthread $LIBS" CXXFLAGS="-D_REENTRANT $CXXFLAGS" ;; linux*) - AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) DYNLINKFLAGS="-rdynamic" THREADFLAGS="-pthread" CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS" ;; darwin*) - AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) DYNLINKFLAGS="-rdynamic" CXXFLAGS="-D__APPLE_USE_RFC_3542 $CXXFLAGS" AM_CONDITIONAL([OS_MACOSX], true) ;; *) - AC_DEFINE(HAVE_IPV6,1,[If the host operating system understands IPv6]) DYNLINKFLAGS="-rdynamic" LDFLAGS="-pthread $LDFLAGS" CXXFLAGS="-pthread $CXXFLAGS" diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index 6a1bc944f9..f4c20d60e0 100644 --- a/pdns/nameserver.cc +++ b/pdns/nameserver.cc @@ -203,7 +203,6 @@ bool AddressIsUs(const ComboAddress& remote) void UDPNameserver::bindIPv6() { -#if HAVE_IPV6 vector locals; stringtok(locals,::arg()["local-ipv6"]," ,"); int one=1; @@ -261,9 +260,7 @@ void UDPNameserver::bindIPv6() pfd.revents = 0; d_rfds.push_back(pfd); L<::const_iterator laddr=locals6.begin();laddr!=locals6.end();++laddr) { int s=socket(AF_INET6,SOCK_STREAM,0); @@ -1157,7 +1156,6 @@ TCPNameserver::TCPNameserver() d_prfds.push_back(pfd); } -#endif } -- 2.47.2