--- a/ext/standard/dns.c	(revision 292278)
+++ b/ext/standard/dns.c	(revision 292467)
@@ -34,14 +34,14 @@
 #endif
 /* located in www.php.net/extra/bindlib.zip */
 #if HAVE_ARPA_INET_H 
-#include "arpa/inet.h"
+#include <arpa/inet.h>
 #endif
-#include "netdb.h"
+#include <netdb.h>
 #if HAVE_ARPA_NAMESERV_H
-#include "arpa/nameser.h"
+#include <arpa/nameser.h>
 #endif
 #if HAVE_RESOLV_H
-#include "resolv.h"
+#include <resolv.h>
 #endif
 #endif /* HAVE_LIBBIND */
 #include <winsock2.h>
@@ -55,10 +55,10 @@
 #undef STATUS
 #undef T_UNSPEC
 #endif
-#if HAVE_ARPA_NAMESER_COMPAT_H
-#include <arpa/nameser_compat.h>
-#endif
 #if HAVE_ARPA_NAMESER_H
+#ifdef DARWIN
+# define BIND_8_COMPAT 1
+#endif
 #include <arpa/nameser.h>
 #endif
 #if HAVE_RESOLV_H
