diff -uNr php-4.3.9.orig/ext/standard/basic_functions.c php-4.3.9/ext/standard/basic_functions.c --- php-4.3.9.orig/ext/standard/basic_functions.c 2004-07-30 16:52:35.000000000 +0000 +++ php-4.3.9/ext/standard/basic_functions.c 2004-12-14 01:52:01.000000000 +0000 @@ -446,7 +446,7 @@ PHP_FE(gethostbyname, NULL) PHP_FE(gethostbynamel, NULL) -#if HAVE_RES_SEARCH && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) +#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && !(defined(__BEOS__) || defined(PHP_WIN32) || defined(NETWARE)) PHP_FE(checkdnsrr, NULL) PHP_FE(getmxrr,second_and_third_args_force_ref) #endif diff -uNr php-4.3.9.orig/ext/standard/dns.c php-4.3.9/ext/standard/dns.c --- php-4.3.9.orig/ext/standard/dns.c 2003-09-01 22:37:46.000000000 +0000 +++ php-4.3.9/ext/standard/dns.c 2004-12-14 01:51:35.000000000 +0000 @@ -207,7 +207,7 @@ } /* }}} */ -#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) +#if HAVE_RES_SEARCH && HAVE_DN_SKIPNAME && !(defined(__BEOS__)||defined(PHP_WIN32) || defined(NETWARE)) /* {{{ proto int checkdnsrr(string host [, string type]) Check DNS records corresponding to a given Internet host name or IP address */