From: Pieter Lexis Date: Wed, 29 Apr 2015 11:20:30 +0000 (+0200) Subject: Fix compilation problems for dnsdiston old linux versions X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~86^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2475%2Fhead;p=thirdparty%2Fpdns.git Fix compilation problems for dnsdiston old linux versions --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 749eeee0b5..6526d1112b 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -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);