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.
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. */