diff -Naur php-5.3.1RC2/ext/standard/dns.c php/ext/standard/dns.c --- php-5.3.1RC2/ext/standard/dns.c 2009-05-20 05:44:19.000000000 -0700 +++ php/ext/standard/dns.c 2009-06-16 17:10:25.000000000 -0700 @@ -43,6 +43,9 @@ #undef STATUS #undef T_UNSPEC #endif +#if !defined BIND_8_COMPAT +#include <arpa/nameser_compat.h> +#endif #if HAVE_ARPA_NAMESER_H #include <arpa/nameser.h> #endif