Changes to compile and run on NetBSD #6146
These are the minimal changes to make the authoritative server, the
The changes fall into three groups:
The result works as it should, and I've verified that the servers now
One quirk I haven't done anything about is the difficulty configure
Re-reading the patch, there's a clarification I guess I should have made: in pdns/misc.cc, there was an #ifdef, #endif, #ifdef, #endif sequence, that I replace with #if, #elif, #endif. This sequence would have created unnecessary extra code on NetBSD, it being the only OS where both of the conditions would be true. My modifications, committed to NetBSD-current, and expected to be released with NetBSD 8, make both the IP_PKTINFO and the IP_SENDSRCADDR control messages available for use with sendmsg().