On 07/10/2012, at 6:46 PM, bert hubert wrote: > On Sun, Oct 07, 2012 at 12:59:34PM +1100, Justin Clift wrote: >> /usr/include/netinet6/in6.h:#define IPV6_PKTINFO IPV6_2292PKTINFO >> /usr/include/netinet6/in6.h:#define IPV6_RECVPKTINFO 61 /* bool; >> recv if, dst addr >> /usr/include/netinet6/in6.h:#define IPV6_PKTINFO IPV6_3542PKTINFO >> >> Tried adding "#include <netinet/in.h>" to pdns/nameserver.cc, but that >> make no difference. :( > > Can you add: > > #define __APPLE_USE_RFC_3542 > #include <netinet6/in6.h>
Aha, that define by itself did the trick. :) Didn't need netinet/in.h nor netinet6/in6.h added to the includes (netinet6/in6.h actually prints a warning saying to use netinet/in.h) Reworked that into a more proper looking fix, here: https://github.com/Habbie/powerdns/pull/54 Hope that's helpful. Regards and best wishes, Justin Clift > ? > > Bert _______________________________________________ Pdns-dev mailing list Pdns-dev@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-dev