]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix compilation problems for dnsdiston old linux versions 2475/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 29 Apr 2015 11:20:30 +0000 (13:20 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 29 Apr 2015 11:20:30 +0000 (13:20 +0200)
pdns/dnsdist.cc

index 749eeee0b57e74d314850e4dd7140f28ece7a037..6526d1112bfaefba377a9f2c7c26462832b908ff 100644 (file)
@@ -993,7 +993,9 @@ try
     if(IsAnyAddress(local)) {
       int one=1;
       setsockopt(cs->udpFD, IPPROTO_IP, GEN_IP_PKTINFO, &one, sizeof(one));     // linux supports this, so why not - might fail on other systems
+#ifdef IPV6_RECVPKTINFO
       setsockopt(cs->udpFD, IPPROTO_IPV6, IPV6_RECVPKTINFO, &one, sizeof(one)); 
+#endif
     }
 
     SBind(cs->udpFD, cs->local);