<div dir="ltr">Building a vanilla 2.43 dnsmasq on MacOS X 10.5 dies with this error:<br><br>rfc1035.c: In function 'answer_request':<br>rfc1035.c:1480: error: 'T_NAPTR' undeclared (first use in this function)<br>rfc1035.c:1480: error: (Each undeclared identifier is reported only once<br>
rfc1035.c:1480: error: for each function it appears in.)<br><br>After screwing around with it I&#39;ve got a patch that makes it build.<br><br>--- src/config.h.old&nbsp;&nbsp;&nbsp; 2008-07-17 01:50:13.000000000 -0400<br>+++ src/config.h&nbsp;&nbsp;&nbsp; 2008-07-17 01:50:30.000000000 -0400<br>
@@ -245,8 +245,6 @@<br>&nbsp;#define HAVE_SOCKADDR_SA_LEN<br>&nbsp;/* Define before sys/socket.h is included so we get socklen_t */<br>&nbsp;#define _BSD_SOCKLEN_T_<br>-/* This is not defined in Mac OS X arpa/nameserv.h */<br>-#define IN6ADDRSZ 16<br>
&nbsp; <br>&nbsp;#elif defined(__NetBSD__)<br>&nbsp;#define HAVE_BSD_NETWORK<br>--- src/dnsmasq.h.old&nbsp;&nbsp;&nbsp; 2008-07-17 01:52:39.000000000 -0400<br>+++ src/dnsmasq.h&nbsp;&nbsp;&nbsp; 2008-07-17 01:53:58.000000000 -0400<br>@@ -33,10 +33,11 @@<br>&nbsp;#include &lt;netinet/in.h&gt;<br>
&nbsp;<br>&nbsp;#ifdef __APPLE__<br>-/* need this before arpa/nameser.h */<br>-#&nbsp; define BIND_8_COMPAT<br>+#&nbsp; include &lt;nameser.h&gt;<br>+#&nbsp; include &lt;arpa/nameser_compat.h&gt;<br>+#else<br>+#&nbsp; include &lt;arpa/nameser.h&gt;<br>
&nbsp;#endif<br>-#include &lt;arpa/nameser.h&gt;<br>&nbsp;<br>&nbsp;/* and this. */<br>&nbsp;#include &lt;getopt.h&gt;<br><br></div>