<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've got a patch that makes it build.<br><br>--- src/config.h.old 2008-07-17 01:50:13.000000000 -0400<br>+++ src/config.h 2008-07-17 01:50:30.000000000 -0400<br>
@@ -245,8 +245,6 @@<br> #define HAVE_SOCKADDR_SA_LEN<br> /* Define before sys/socket.h is included so we get socklen_t */<br> #define _BSD_SOCKLEN_T_<br>-/* This is not defined in Mac OS X arpa/nameserv.h */<br>-#define IN6ADDRSZ 16<br>
<br> #elif defined(__NetBSD__)<br> #define HAVE_BSD_NETWORK<br>--- src/dnsmasq.h.old 2008-07-17 01:52:39.000000000 -0400<br>+++ src/dnsmasq.h 2008-07-17 01:53:58.000000000 -0400<br>@@ -33,10 +33,11 @@<br> #include <netinet/in.h><br>
<br> #ifdef __APPLE__<br>-/* need this before arpa/nameser.h */<br>-# define BIND_8_COMPAT<br>+# include <nameser.h><br>+# include <arpa/nameser_compat.h><br>+#else<br>+# include <arpa/nameser.h><br>
#endif<br>-#include <arpa/nameser.h><br> <br> /* and this. */<br> #include <getopt.h><br><br></div>