From d98d3951f3bc15c6e5c7cfa236d30d238f82eb8f Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Wed, 29 Apr 2015 13:20:30 +0200 Subject: [PATCH] Fix compilation problems for dnsdiston old linux versions --- pdns/dnsdist.cc | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.47.2