On 30/10/11 12:59, Olaf Flebbe wrote:
Hi,

in order to compile dnsmasq 2.59 on macosx lion one needs the Define
__APPLE_USE_RFC_2292 in order to get the IPV6_PKTINFO definition.


Thanks for that.

http://seclists.org/nmap-dev/2011/q3/810

implies that there's in alternative: __APPLE_USE_RFC_3542

Please could you check to see if that works instead of 2292. I think the dnsmasq code should work with either, and it would be could to use the current API rather than the obsolete one if so.


Cheers,

Simon.

Greetings
     Olaf



--- dnsmasq-2.59/src/dnsmasq.h  2011-10-08 17:05:16.000000000 +0200
+++ ../dnsmasq-2.59/src/dnsmasq.h       2011-10-30 13:56:20.000000000 +0100
@@ -39,6 +39,10 @@
  /* get these before config.h  for IPv6 stuff... */
  #include<sys/types.h>
  #include<sys/socket.h>
+#ifdef __APPLE__
+/* Define before netinet/in.h for IPV6_PKTINFO */
+#define __APPLE_USE_RFC_2292
+#endif
  #include<netinet/in.h>

  /* and this. */





_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss



Reply via email to