Hello, On 25 Jun 2014, at 23:06 , Christian Hofstaedtler <z...@debian.org> wrote:
>> 2) pdns/nameserver.c: IPV6_RECVPKTINFO is not defined on GNU/Hurd, use >> IPV6_RXINFO instead. >> >> Index: pdns-3.3.1/pdns/nameserver.cc >> =================================================================== >> --- pdns-3.3.1.orig/pdns/nameserver.cc >> +++ pdns-3.3.1/pdns/nameserver.cc >> @@ -213,7 +213,11 @@ void UDPNameserver::bindIPv6() >> if(IsAnyAddress(locala)) { >> int val=1; >> setsockopt(s, IPPROTO_IP, GEN_IP_PKTINFO, &val, sizeof(val)); // >> linux supports this, so why not - might fail on other systems >> +#ifndef IPV6_RECVPKTINFO // IPV6_RXINFO same as IPV6_PKTINFO on GNU/Hurd >> + setsockopt(s, IPPROTO_IPV6, IPV6_RXINFO, &val, sizeof(val)); >> +#else >> setsockopt(s, IPPROTO_IPV6, IPV6_RECVPKTINFO, &val, sizeof(val)); >> +#endif >> setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &val, sizeof(val)); // >> if this fails, we report an error in tcpreceiver too >> } >> g_localaddresses.push_back(locala); > > > Could you turn that into an autoconf thing? I think having it as an autoconf- > detected and aliased thing would be preferred upstream (CC'ed > upstream for their opinion). We would prefer that, but we would accept something like #ifndef IPV6_RECVPKTINFO #define IPV6_RECVPKTINFO IPV6_RXINFO #endif in a suitable header file. Kind regards, -- Peter van Dijk Netherlabs Computer Consulting BV - http://www.netherlabs.nl/
signature.asc
Description: Message signed with OpenPGP using GPGMail