]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix compilation problems for auth on old linux versions
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 29 Apr 2015 11:19:51 +0000 (13:19 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 29 Apr 2015 11:19:51 +0000 (13:19 +0200)
pdns/nameserver.cc

index cc5c47bf84b88f173bddc360753f505d073f7901..a844766c452caa83da5b0e3787d1a782956d7ef5 100644 (file)
@@ -217,7 +217,9 @@ void UDPNameserver::bindIPv6()
     
     if(IsAnyAddress(locala)) {
       setsockopt(s, IPPROTO_IP, GEN_IP_PKTINFO, &one, sizeof(one));     // linux supports this, so why not - might fail on other systems
+#ifdef IPV6_RECVPKTINFO
       setsockopt(s, IPPROTO_IPV6, IPV6_RECVPKTINFO, &one, sizeof(one)); 
+#endif
       setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(one));      // if this fails, we report an error in tcpreceiver too
     }